pgsql: Fix handling of collation in SQL-language functions.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix handling of collation in SQL-language functions.
Date: 2011-03-25 00:30:37
Message-ID: E1Q2uvF-00056U-Ia@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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 ...

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/27dc7e240bfd230ee1315cc00577a6ed72aff94a

Modified Files
--------------
src/backend/catalog/pg_proc.c | 13 +-
src/backend/executor/functions.c | 174 +++++++++++++++++-----
src/backend/optimizer/util/clauses.c | 106 +++++++++----
src/backend/parser/parse_param.c | 5 +
src/include/executor/functions.h | 9 +
src/test/regress/expected/collate.linux.utf8.out | 53 +++++++
src/test/regress/sql/collate.linux.utf8.sql | 19 +++
7 files changed, 303 insertions(+), 76 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message User Fxjr 2011-03-25 00:55:25 npgsql - Npgsql2: Changed assembly version info to indicate a beta1
Previous Message User Fxjr 2011-03-25 00:22:40 npgsql - Npgsql2: Updated copyright year