[PATCH] collation for (expr) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject [PATCH] collation for (expr)
Date
Msg-id 1326061030.15293.23.camel@vanquo.pezone.net
Whole thread Raw
List 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

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SP-GiST versus index-only scans
Next
From: Simon Riggs
Date:
Subject: Re: Page Checksums