Previous patch to mark UNION outputs with common typmod (if any) breaks
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Mar 2002 05:13:36 +0000 (05:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Mar 2002 05:13:36 +0000 (05:13 +0000)
commitb079c83cdc452ead91289006848c3080aaa779c5
tree150ccc6055962511cfe4eb498d55ebfb7edac477
parent323949761cb3d4eecbcb5fee9650cd24c86f1146
Previous patch to mark UNION outputs with common typmod (if any) breaks
three-or-more-way UNIONs, as per example from Josh Berkus.  Cause is a
fragile assumption that one tlist's entries will exactly match another.
Restructure code to make that assumption a little less fragile.
src/backend/optimizer/prep/prepunion.c