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
82682ff3
Commit
82682ff3
authored
Feb 15, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimizer rename
parent
ba2883b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/allpaths.c
+4
-4
src/backend/optimizer/path/joinrels.c
src/backend/optimizer/path/joinrels.c
+4
-3
src/backend/optimizer/path/prune.c
src/backend/optimizer/path/prune.c
+6
-6
src/include/optimizer/paths.h
src/include/optimizer/paths.h
+2
-2
No files found.
src/backend/optimizer/path/allpaths.c
View file @
82682ff3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.3
5 1999/02/15 03:22:03
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.3
6 1999/02/15 03:59:27
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -211,7 +211,7 @@ make_one_rel_by_joins(Query *root, List *outer_rels, int levels_needed)
* involves the join relation to the joininfo list of the
* other relation
*/
add_
new
_joininfos
(
root
,
joined_rels
,
outer_rels
);
add_
rel_to_rel
_joininfos
(
root
,
joined_rels
,
outer_rels
);
}
#endif
...
...
@@ -236,12 +236,12 @@ make_one_rel_by_joins(Query *root, List *outer_rels, int levels_needed)
* prune rels that have been completely incorporated into new
* join rels
*/
outer_rels
=
prune_oldrels
(
outer_rels
);
outer_rels
=
del_rels_all_bushy_inactive
(
outer_rels
);
/*
* merge join rels if then contain the same list of base rels
*/
outer_rels
=
merge_
joinrel
s
(
joined_rels
,
outer_rels
);
outer_rels
=
merge_
rels_with_same_relid
s
(
joined_rels
,
outer_rels
);
root
->
join_rel_list
=
outer_rels
;
}
else
...
...
src/backend/optimizer/path/joinrels.c
View file @
82682ff3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinrels.c,v 1.2
3 1999/02/15 03:22:05
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinrels.c,v 1.2
4 1999/02/15 03:59:27
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -373,7 +373,7 @@ new_joininfo_list(List *joininfo_list, List *join_relids)
}
/*
* add_
new
_joininfos
* add_
rel_to_rel
_joininfos
* For each new join relation, create new joininfos that
* use the join relation as inner relation, and add
* the new joininfos to those rel nodes that still
...
...
@@ -384,7 +384,7 @@ new_joininfo_list(List *joininfo_list, List *join_relids)
* Modifies the joininfo field of appropriate rel nodes.
*/
void
add_
new
_joininfos
(
Query
*
root
,
List
*
joinrels
,
List
*
outerrels
)
add_
rel_to_rel
_joininfos
(
Query
*
root
,
List
*
joinrels
,
List
*
outerrels
)
{
List
*
xjoinrel
=
NIL
;
List
*
xrelid
=
NIL
;
...
...
@@ -462,6 +462,7 @@ add_new_joininfos(Query *root, List *joinrels, List *outerrels)
}
}
}
foreach
(
xrel
,
outerrels
)
{
RelOptInfo
*
rel
=
(
RelOptInfo
*
)
lfirst
(
xrel
);
...
...
src/backend/optimizer/path/prune.c
View file @
82682ff3
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.3
3 1999/02/15 03:22:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.3
4 1999/02/15 03:59:27
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -48,7 +48,7 @@ merge_rels_with_same_relids(List *rel_list)
}
/*
* merge_rel_with_same_relids
* merge_rel_with_same_relids
* Prunes those relations from 'other_rels' that are redundant with
* 'rel'. A relation is redundant if it is built up of the same
* relations as 'rel'. Paths for the redundant relation are merged into
...
...
@@ -108,7 +108,7 @@ rels_set_cheapest(List *rel_list)
#ifdef NOT_USED
/*
* merge_
joinrel
s
* merge_
rels_with_same_relid
s
* Given two lists of rel nodes that are already
* pruned, merge them into one pruned rel node list
*
...
...
@@ -118,7 +118,7 @@ rels_set_cheapest(List *rel_list)
* Returns one pruned rel node list
*/
List
*
merge_
joinrel
s
(
List
*
rel_list1
,
List
*
rel_list2
)
merge_
rels_with_same_relid
s
(
List
*
rel_list1
,
List
*
rel_list2
)
{
List
*
xrel
=
NIL
;
...
...
@@ -132,7 +132,7 @@ merge_joinrels(List *rel_list1, List *rel_list2)
}
/*
*
prune_oldrels
*
del_rels_all_bushy_inactive
* If all the joininfo's in a rel node are bushy_inactive,
* that means that this node has been joined into
* other nodes in all possible ways, therefore
...
...
@@ -144,7 +144,7 @@ merge_joinrels(List *rel_list1, List *rel_list2)
* Returns a new list of rel nodes
*/
List
*
prune_oldrels
(
List
*
old_rels
)
del_rels_all_bushy_inactive
(
List
*
old_rels
)
{
RelOptInfo
*
rel
;
List
*
joininfo_list
,
...
...
src/include/optimizer/paths.h
View file @
82682ff3
...
...
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: paths.h,v 1.1
7 1999/02/15 03:22:31
momjian Exp $
* $Id: paths.h,v 1.1
8 1999/02/15 03:59:28
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -78,7 +78,7 @@ extern MergeInfo *match_order_mergeinfo(PathOrder *ordering,
* routines to determine which relations to join
*/
extern
List
*
make_rels_by_joins
(
Query
*
root
,
List
*
outer_rels
);
extern
void
add_
new
_joininfos
(
Query
*
root
,
List
*
joinrels
,
List
*
outerrels
);
extern
void
add_
rel_to_rel
_joininfos
(
Query
*
root
,
List
*
joinrels
,
List
*
outerrels
);
extern
List
*
make_rels_by_clause_joins
(
Query
*
root
,
RelOptInfo
*
outer_rel
,
List
*
joininfo_list
,
List
*
only_relids
);
extern
List
*
make_rels_by_clauseless_joins
(
RelOptInfo
*
outer_rel
,
...
...
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