• Tom Lane's avatar
    Repair for bug #691 --- CREATE TABLE AS column aliases fail to be · 59c325bb
    Tom Lane authored
    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.
    59c325bb
analyze.c 90.9 KB