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: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Here is a patch for the following construct, specified in the SQL

    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-2017 The PostgreSQL Global Development Group