Re: ORDER BY 1 COLLATE - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ORDER BY 1 COLLATE
Date
Msg-id 15684.1303158049@sss.pgh.pa.us
Whole thread Raw
In response to ORDER BY 1 COLLATE  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: ORDER BY 1 COLLATE  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> This came from a review by Noah Misch a great while ago:
> test=> SELECT b FROM foo ORDER BY 1 COLLATE "C";
> ERROR:  42804: collations are not supported by type integer

> According to SQL92, this should be supported.  Do we want to bother?  It
> doesn't look hard to fix, so it's really only a question of whether this
> would be useful, or its absence would be too confusing.

The ORDER BY 1 business seems to me to be legacy anyway.  I'm not
inclined to put in even more hacks to make strange combinations work
there --- I think we're likely to find ourselves painted into a corner
someday as it is.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: ORDER BY 1 COLLATE
Next
From: Andrew Dunstan
Date:
Subject: Re: ORDER BY 1 COLLATE