Skip site navigation (1) Skip section navigation (2)

[PATCH] collation for (expr)

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 (view raw or flat)
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: collation-for.patch
Description: text/x-patch (7.7 KB)

pgsql-hackers by date

Next:From: Simon RiggsDate: 2012-01-08 23:25:05
Subject: Re: Page Checksums
Previous:From: Tom LaneDate: 2012-01-08 22:09:25
Subject: Re: SP-GiST versus index-only scans

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group