Thread: pgsql/src/backend/optimizer/prep prepunion.c

pgsql/src/backend/optimizer/prep prepunion.c

From
tgl@postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    tgl@postgresql.org    02/03/05 00:10:25

Modified files:
    src/backend/optimizer/prep: prepunion.c

Log message:
    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.