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
05404562
Commit
05404562
authored
Jun 02, 1997
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GEQO if _use_geqo_ is TRUE and # of relations is >= _use_geqo_rels_
(both are settable via SET geqo TO ...).
parent
cda886fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/allpaths.c
+3
-2
No files found.
src/backend/optimizer/path/allpaths.c
View file @
05404562
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.
7 1997/06/01 02:55:44 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.
8 1997/06/02 11:14:40 vadim
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -38,6 +38,7 @@ bool _use_geqo_ = true;
...
@@ -38,6 +38,7 @@ bool _use_geqo_ = true;
#else
#else
bool
_use_geqo_
=
false
;
bool
_use_geqo_
=
false
;
#endif
#endif
int32
_use_geqo_rels_
=
GEQO_RELS
;
static
void
find_rel_paths
(
Query
*
root
,
List
*
rels
);
static
void
find_rel_paths
(
Query
*
root
,
List
*
rels
);
...
@@ -173,7 +174,7 @@ find_join_paths(Query *root, List *outer_rels, int levels_left)
...
@@ -173,7 +174,7 @@ find_join_paths(Query *root, List *outer_rels, int levels_left)
* <utesch@aut.tu-freiberg.de> *
* <utesch@aut.tu-freiberg.de> *
*******************************************/
*******************************************/
if
(
(
_use_geqo_
)
||
length
(
root
->
base_relation_list_
)
>=
GEQO_RELS
)
if
(
(
_use_geqo_
)
&&
length
(
root
->
base_relation_list_
)
>=
_use_geqo_rels_
)
return
lcons
(
geqo
(
root
),
NIL
);
/* returns *one* Rel, so lcons it */
return
lcons
(
geqo
(
root
),
NIL
);
/* returns *one* Rel, so lcons it */
/*******************************************
/*******************************************
...
...
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