pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Marc Cousin <cousinmarc@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: collation problem on 9.1-beta1
Date: Thu, 02 Jun 2011 15:09:45 +0300
Message-ID: <1307016585.2279.8.camel@vanquo.pezone.net> (raw)
In-Reply-To: <4542.1305140337@sss.pgh.pa.us>
References: <1305139670.25203.3.camel@marco-dalibo>
	<4542.1305140337@sss.pgh.pa.us>

On ons, 2011-05-11 at 14:58 -0400, Tom Lane wrote:
> Marc Cousin <cousinmarc@gmail.com> writes:
> > I've been starting to work on a 'what's new in 9.1' like i did last
> > year, and am faced with what I feel is a bug, while building a demo case
> > for collation.
> 
> > Here it is:
> 
> > SELECT * from (values ('llegar'),('llorer'),('lugar')) as tmp 
> > order by 1 collate "es_ES.utf8";
> > ERROR:  collations are not supported by type integer at character 74
> 
> This isn't a bug, or at least not one we're going to fix.  ORDER BY
> column-number is a legacy syntax that doesn't support many options, and
> COLLATE is one of the ones that it doesn't support.
> 
> (The actual technical reason for this is that COLLATE turns the argument
> into a general expression, not something we can special-case.  You would
> get the same error from writing "1 COLLATE something" anyplace else.)

Well, I'm just counting how many more people are going to complain about
this before fixing it.  Possibly in 9.2.




view thread (8+ messages)  latest in thread

Message-ID: <1307016585.2279.8.camel@vanquo.pezone.net>
Permalink:  ../1307016585.2279.8.camel@vanquo.pezone.net/
Also on:    postgresql.org/message-id/1307016585.2279.8.camel@vanquo.pezone.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter_e@gmx.net, tgl@sss.pgh.pa.us, cousinmarc@gmail.com
  Subject: Re: collation problem on 9.1-beta1
  In-Reply-To: <1307016585.2279.8.camel@vanquo.pezone.net>
  References: <1305139670.25203.3.camel@marco-dalibo> <4542.1305140337@sss.pgh.pa.us> <1307016585.2279.8.camel@vanquo.pezone.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox