WIP patch for allowing COLLATE in plpgsql variable declarations

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: WIP patch for allowing COLLATE in plpgsql variable declarations
Date: 2011-04-16 23:55:04
Message-ID: 12613.1302998104@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The attached code patch (seems to work, but no regression tests or doc
fixes yet) allows plpgsql variable declarations like

declare
x text collate "en_US";

Such a collation spec overrides the default variable collation that is
otherwise inherited from the function's input collation. I believe
this is essentially what we agreed to do a couple weeks ago.
Comments, objections?

regards, tom lane

Attachment Content-Type Size
plpgsql-collate-decl-1.patch text/x-patch 5.6 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2011-04-17 00:46:44 Windows 64 bit warnings
Previous Message Thom Brown 2011-04-16 23:45:18 Re: ALTER TABLE INHERIT vs collations