pgsql: Support a COLLATE clause in plpgsql variable declarations.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Support a COLLATE clause in plpgsql variable declarations.
Date: 2011-04-17 18:54:28
Message-ID: E1QBX76-0003mc-Kk@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Support a COLLATE clause in plpgsql variable declarations.

This allows the usual rules for assigning a collation to a local variable
to be overridden. Per discussion, it seems appropriate to support this
rather than forcing all local variables to have the argument-derived
collation.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c94732585647437291ec3f4a9902eeffc65a6945

Modified Files
--------------
doc/src/sgml/plpgsql.sgml | 32 ++++++++++++---
src/pl/plpgsql/src/gram.y | 47 +++++++++++++++++++---
src/pl/plpgsql/src/pl_scanner.c | 1 +
src/test/regress/expected/collate.linux.utf8.out | 40 ++++++++++++++++++
src/test/regress/sql/collate.linux.utf8.sql | 28 +++++++++++++
5 files changed, 136 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-04-17 20:22:36 pgsql: Add check for matching column collations in ALTER TABLE ... INHE
Previous Message Tom Lane 2011-04-17 17:37:50 pgsql: foreach() and list_delete() don't mix.