diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-05 05:07:36 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-05 05:07:36 +0000 |
commit | 9091e8d1b233faf9994518fda7fcc171fddb53ac (patch) | |
tree | 572b200768bbfba3cfc121f1b4c12c79ab650d96 /src/backend/optimizer/plan/createplan.c | |
parent | bf488a6842ef2bf43ab89337c8970971e84951da (diff) | |
download | postgresql-9091e8d1b233faf9994518fda7fcc171fddb53ac.tar.gz postgresql-9091e8d1b233faf9994518fda7fcc171fddb53ac.zip |
Add the ability to extract OR indexscan conditions from OR-of-AND
join conditions in which each OR subclause includes a constraint on
the same relation. This implements the other useful side-effect of
conversion to CNF format, without its unpleasant side-effects. As
per pghackers discussion of a few weeks ago.
Diffstat (limited to 'src/backend/optimizer/plan/createplan.c')
-rw-r--r-- | src/backend/optimizer/plan/createplan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/optimizer/plan/createplan.c b/src/backend/optimizer/plan/createplan.c index 906e1f7f257..d20b967b05c 100644 --- a/src/backend/optimizer/plan/createplan.c +++ b/src/backend/optimizer/plan/createplan.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/plan/createplan.c,v 1.161 2003/11/29 19:51:50 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/plan/createplan.c,v 1.162 2004/01/05 05:07:35 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -643,6 +643,7 @@ create_unique_plan(Query *root, UniquePath *best_path) plan = (Plan *) make_unique(my_tlist, plan, sortList); } + /* Adjust output size estimate (other fields should be OK already) */ plan->plan_rows = best_path->rows; return plan; |