[PATCH] collation for (expr)

Lists: pgsql-hackers
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: Raw Message | Whole Thread | Download mbox | Resend email
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