Clean up a few failures to set collation fields in expression nodes.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b23c9fa9293c54a3829093d207be37a7b42cb630
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-03-26T18:25:48Z
Releases: 9.1.0
Clean up a few failures to set collation fields in expression nodes.

I'm not sure these have any non-cosmetic implications, but I'm not sure
they don't, either.  In particular, ensure the CaseTestExpr generated
by transformAssignmentIndirection to represent the base target column
carries the correct collation, because parse_collate.c won't fix that.
Tweak lsyscache.c API so that we can get the appropriate collation
without an extra syscache lookup.

Files