OSDN Git Service

Fix handling of collation in SQL-language functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Mar 2011 00:30:14 +0000 (20:30 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Mar 2011 00:30:23 +0000 (20:30 -0400)
commit27dc7e240bfd230ee1315cc00577a6ed72aff94a
tree2100db2f29740b01e27d679b6ac8eb2fc313a715
parenta432e2783bb69fb68461ed2bcc460e2876fcc68d
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 ...
src/backend/catalog/pg_proc.c
src/backend/executor/functions.c
src/backend/optimizer/util/clauses.c
src/backend/parser/parse_param.c
src/include/executor/functions.h
src/test/regress/expected/collate.linux.utf8.out
src/test/regress/sql/collate.linux.utf8.sql