Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6264FB606CC for ; Thu, 2 Jun 2011 09:09:55 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 82233-03 for ; Thu, 2 Jun 2011 12:09:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 2AA8CB606CB for ; Thu, 2 Jun 2011 09:09:47 -0300 (ADT) Received: (qmail invoked by alias); 02 Jun 2011 12:09:46 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp070) with SMTP; 02 Jun 2011 14:09:46 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX19DnMpocUJDCKX6wue+MUGaEjHTUdwAzvZqsN3nck d14h2rbKNG6rXX Subject: Re: collation problem on 9.1-beta1 From: Peter Eisentraut To: Tom Lane Cc: Marc Cousin , pgsql-bugs@postgresql.org In-Reply-To: <4542.1305140337@sss.pgh.pa.us> References: <1305139670.25203.3.camel@marco-dalibo> <4542.1305140337@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Date: Thu, 02 Jun 2011 15:09:45 +0300 Message-ID: <1307016585.2279.8.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/15 X-Sequence-Number: 30394 On ons, 2011-05-11 at 14:58 -0400, Tom Lane wrote: > Marc Cousin 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.