diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-07-18 04:22:52 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-07-18 04:22:52 +0000 |
commit | 584f9438caef700f25596618141e29265f9595da (patch) | |
tree | 7334f9c894a52f2d5794c13e8783c72ea15bbcf1 /src/backend/optimizer/path/joinpath.c | |
parent | 3a132e9d839ed41494233d052328217013ed65c0 (diff) | |
download | postgresql-584f9438caef700f25596618141e29265f9595da.tar.gz postgresql-584f9438caef700f25596618141e29265f9595da.zip |
Rename Rel to RelOptInfo.
Diffstat (limited to 'src/backend/optimizer/path/joinpath.c')
-rw-r--r-- | src/backend/optimizer/path/joinpath.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/backend/optimizer/path/joinpath.c b/src/backend/optimizer/path/joinpath.c index 33448a6c037..2e835276710 100644 --- a/src/backend/optimizer/path/joinpath.c +++ b/src/backend/optimizer/path/joinpath.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.6 1998/06/15 19:28:40 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.7 1998/07/18 04:22:32 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -31,18 +31,18 @@ static Path *best_innerjoin(List *join_paths, List *outer_relid); static List * -sort_inner_and_outer(Rel *joinrel, Rel *outerrel, Rel *innerrel, +sort_inner_and_outer(RelOptInfo *joinrel, RelOptInfo *outerrel, RelOptInfo *innerrel, List *mergeinfo_list); static List * -match_unsorted_outer(Rel *joinrel, Rel *outerrel, Rel *innerrel, +match_unsorted_outer(RelOptInfo *joinrel, RelOptInfo *outerrel, RelOptInfo *innerrel, List *outerpath_list, Path *cheapest_inner, Path *best_innerjoin, List *mergeinfo_list); static List * -match_unsorted_inner(Rel *joinrel, Rel *outerrel, Rel *innerrel, +match_unsorted_inner(RelOptInfo *joinrel, RelOptInfo *outerrel, RelOptInfo *innerrel, List *innerpath_list, List *mergeinfo_list); -static bool EnoughMemoryForHashjoin(Rel *hashrel); +static bool EnoughMemoryForHashjoin(RelOptInfo *hashrel); static List * -hash_inner_and_outer(Rel *joinrel, Rel *outerrel, Rel *innerrel, +hash_inner_and_outer(RelOptInfo *joinrel, RelOptInfo *outerrel, RelOptInfo *innerrel, List *hashinfo_list); /* @@ -76,11 +76,11 @@ find_all_join_paths(Query *root, List *joinrels) while (joinrels != NIL) { - Rel *joinrel = (Rel *) lfirst(joinrels); + RelOptInfo *joinrel = (RelOptInfo *) lfirst(joinrels); List *innerrelids; List *outerrelids; - Rel *innerrel; - Rel *outerrel; + RelOptInfo *innerrel; + RelOptInfo *outerrel; Path *bestinnerjoin; List *pathlist = NIL; @@ -238,9 +238,9 @@ best_innerjoin(List *join_paths, List *outer_relids) * Returns a list of mergesort paths. */ static List * -sort_inner_and_outer(Rel *joinrel, - Rel *outerrel, - Rel *innerrel, +sort_inner_and_outer(RelOptInfo *joinrel, + RelOptInfo *outerrel, + RelOptInfo *innerrel, List *mergeinfo_list) { List *ms_list = NIL; @@ -316,9 +316,9 @@ sort_inner_and_outer(Rel *joinrel, * Returns a list of possible join path nodes. */ static List * -match_unsorted_outer(Rel *joinrel, - Rel *outerrel, - Rel *innerrel, +match_unsorted_outer(RelOptInfo *joinrel, + RelOptInfo *outerrel, + RelOptInfo *innerrel, List *outerpath_list, Path *cheapest_inner, Path *best_innerjoin, @@ -469,9 +469,9 @@ match_unsorted_outer(Rel *joinrel, * Returns a list of possible merge paths. */ static List * -match_unsorted_inner(Rel *joinrel, - Rel *outerrel, - Rel *innerrel, +match_unsorted_inner(RelOptInfo *joinrel, + RelOptInfo *outerrel, + RelOptInfo *innerrel, List *innerpath_list, List *mergeinfo_list) { @@ -565,7 +565,7 @@ match_unsorted_inner(Rel *joinrel, } static bool -EnoughMemoryForHashjoin(Rel *hashrel) +EnoughMemoryForHashjoin(RelOptInfo *hashrel) { int ntuples; int tupsize; @@ -599,9 +599,9 @@ EnoughMemoryForHashjoin(Rel *hashrel) * Returns a list of hashjoin paths. */ static List * -hash_inner_and_outer(Rel *joinrel, - Rel *outerrel, - Rel *innerrel, +hash_inner_and_outer(RelOptInfo *joinrel, + RelOptInfo *outerrel, + RelOptInfo *innerrel, List *hashinfo_list) { HInfo *xhashinfo = (HInfo *) NULL; |