diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-16 16:39:50 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-16 16:40:42 -0400 |
commit | 121f49a00e432ee9cfad7270d99504350cd1015f (patch) | |
tree | 6038e4ed0d9ea0d2ae020bb582e26a6da4f77632 /src/include | |
parent | 5809a6458450a59f8c4a7a25beaefc81cff563d1 (diff) | |
download | postgresql-121f49a00e432ee9cfad7270d99504350cd1015f.tar.gz postgresql-121f49a00e432ee9cfad7270d99504350cd1015f.zip |
Clean up collation processing in prepunion.c.
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.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/optimizer/tlist.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/optimizer/tlist.h b/src/include/optimizer/tlist.h index f7606d79a38..7af59589dcb 100644 --- a/src/include/optimizer/tlist.h +++ b/src/include/optimizer/tlist.h @@ -25,6 +25,7 @@ extern List *add_to_flat_tlist(List *tlist, List *exprs); extern List *get_tlist_exprs(List *tlist, bool includeJunk); extern bool tlist_same_datatypes(List *tlist, List *colTypes, bool junkOK); +extern bool tlist_same_collations(List *tlist, List *colCollations, bool junkOK); extern TargetEntry *get_sortgroupref_tle(Index sortref, List *targetList); |