Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a3f1c367
Commit
a3f1c367
authored
Feb 13, 1998
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quite limited support for subselects in clausesel.c.
Get rid of #ifdef INDEXSCAN_PATCH in indxpath.c.
parent
dc892fd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
src/backend/optimizer/path/clausesel.c
src/backend/optimizer/path/clausesel.c
+11
-4
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/path/indxpath.c
+1
-11
No files found.
src/backend/optimizer/path/clausesel.c
View file @
a3f1c367
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.
4 1997/09/08 21:44:47 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.
5 1998/02/13 03:29:36 vadim
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -273,12 +273,19 @@ compute_selec(Query *root, List *clauses, List *or_selectivities)
/* this isn't an Oper, it's a Func!! */
/*
*
* This is not an operator, so we guess at the selectivity. *
* THIS IS A HACK TO GET V4 OUT THE DOOR. FUNCS SHOULD BE
*
ABLE
* TO HAVE SELECTIVITIES THEMSELVES.
*
-- JMH 7/9/92
*
This is not an operator, so we guess at the selectivity.
* THIS IS A HACK TO GET V4 OUT THE DOOR. FUNCS SHOULD BE ABLE
* TO HAVE SELECTIVITIES THEMSELVES. -- JMH 7/9/92
*/
s1
=
0
.
1
;
}
else
if
(
is_subplan
((
Node
*
)
clause
))
{
/*
* Just for the moment! FIX ME! - vadim 02/04/98
*/
s1
=
1
.
0
;
}
else
if
(
NumRelids
((
Node
*
)
clause
)
==
1
)
{
...
...
src/backend/optimizer/path/indxpath.c
View file @
a3f1c367
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.1
2 1997/11/20 23:21:47 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.1
3 1998/02/13 03:29:39 vadim
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -614,13 +614,8 @@ match_clause_to_indexkey(Rel *rel,
/*
* Check for standard s-argable clause
*/
#ifdef INDEXSCAN_PATCH
/* Handle also function parameters. DZ - 27-8-1996 */
if
((
rightop
&&
IsA
(
rightop
,
Const
))
||
(
rightop
&&
IsA
(
rightop
,
Param
)))
#else
if
(
rightop
&&
IsA
(
rightop
,
Const
))
#endif
{
restrict_op
=
((
Oper
*
)
((
Expr
*
)
clause
)
->
oper
)
->
opno
;
isIndexable
=
...
...
@@ -634,13 +629,8 @@ match_clause_to_indexkey(Rel *rel,
/*
* Must try to commute the clause to standard s-arg format.
*/
#ifdef INDEXSCAN_PATCH
/* ...And here... - vadim 01/22/97 */
else
if
((
leftop
&&
IsA
(
leftop
,
Const
))
||
(
leftop
&&
IsA
(
leftop
,
Param
)))
#else
else
if
(
leftop
&&
IsA
(
leftop
,
Const
))
#endif
{
restrict_op
=
get_commutator
(((
Oper
*
)
((
Expr
*
)
clause
)
->
oper
)
->
opno
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment