]> granicus.if.org Git - postgresql/commit
create_unique_plan() should not discard existing output columns of the
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Aug 2003 19:20:24 +0000 (19:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Aug 2003 19:20:24 +0000 (19:20 +0000)
commitecbed6e1b9a373d016c4afb3b674c88e86c1fc28
tree594b8944544d0cb1beb58a20ea8d5badd5b7f59c
parentd862045dfc9ae86358a38749863a5f94f7c2e834
create_unique_plan() should not discard existing output columns of the
subplan it starts with, as they may be needed at upper join levels.
See comments added to code for the non-obvious reason why.  Per bug report
from Robert Creager.
src/backend/optimizer/plan/createplan.c
src/backend/parser/parse_clause.c
src/include/parser/parse_clause.h
src/test/regress/expected/join.out
src/test/regress/sql/join.sql