| From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
|---|---|
| To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | [PATCH] collation for (expr) |
| Date: | 2012-01-08 22:17:10 |
| Message-ID: | 1326061030.15293.23.camel@vanquo.pezone.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Here is a patch for the following construct, specified in the SQL
standard:
collation for (expr)
returns the collation of the argument. It's similar to pg_typeof.
The SQL standard is not clear on the exact format of the return value.
I went with what ruleutils.c produces, which is useful for human
inspection and also for plugging back into SQL statements.
| Attachment | Content-Type | Size |
|---|---|---|
| collation-for.patch | text/x-patch | 7.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Simon Riggs | 2012-01-08 23:25:05 | Re: Page Checksums |
| Previous Message | Tom Lane | 2012-01-08 22:09:25 | Re: SP-GiST versus index-only scans |