Fix handling of collation in SQL-language functions.

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

Commit: 27dc7e240bfd230ee1315cc00577a6ed72aff94a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-03-25T00:30:23Z
Releases: 9.1.0
Fix handling of collation in SQL-language functions.

Ensure that parameter symbols receive collation from the function's
resolved input collation, and fix inlining to behave properly.

BTW, this commit lays about 90% of the infrastructure needed to support
use of argument names in SQL functions.  Parsing of parameters is now
done via the parser-hook infrastructure ... we'd just need to supply
a column-ref hook ...

Files