[PATCH] collation for (expr)

Started by Peter Eisentrautover 14 years ago1 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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.

Attachments:

collation-for.patchtext/x-patch; charset=UTF-8; name=collation-for.patchDownload+103-2