• Tom Lane's avatar
    Clean up collation processing in prepunion.c. · 121f49a0
    Tom Lane authored
    This area was a few bricks shy of a load, and badly under-commented too.
    We have to ensure that the generated targetlist entries for a set-operation
    node expose the correct collation for each entry, since higher-level
    processing expects the tlist to reflect the true ordering of the plan's
    output.
    
    This hackery wouldn't be necessary if SortGroupClause carried collation
    info ... but making it do so would inject more pain in the parser than
    would be saved here.  Still, we might want to rethink that sometime.
    121f49a0
prepunion.c 57 KB