]> granicus.if.org Git - postgresql/commit
Repair for bug #691 --- CREATE TABLE AS column aliases fail to be
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Jun 2002 02:04:46 +0000 (02:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Jun 2002 02:04:46 +0000 (02:04 +0000)
commit59c325bb7363aed9115e9f3ccb77feca05b00ec4
tree7527429caf2074367b85c0a91b8a90ad03020df5
parent2ed878d31dcab9dec215992c7c05e9ae40344d44
Repair for bug #691 --- CREATE TABLE AS column aliases fail to be
applied when the select is a UNION (or other set-operation).

An alternative route to a fix would be to leave analyze.c alone and
change plan_set_operations in prepunion.c to take column names from
the topmost targetlist.  But I am not sure that would work in all
cases.  This patch seems the minimum-risk fix.
src/backend/parser/analyze.c