Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4BD74B5DBBE for ; Thu, 9 Jun 2011 14:30:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 36510-10 for ; Thu, 9 Jun 2011 17:30:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id C58BEB5D91F for ; Thu, 9 Jun 2011 14:30:46 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p59HUfB08649; Thu, 9 Jun 2011 13:30:41 -0400 (EDT) From: Bruce Momjian Message-Id: <201106091730.p59HUfB08649@momjian.us> Subject: Re: collation problem on 9.1-beta1 In-Reply-To: <1307016585.2279.8.camel@vanquo.pezone.net> To: Peter Eisentraut Date: Thu, 9 Jun 2011 13:30:41 -0400 (EDT) CC: Tom Lane , Marc Cousin , pgsql-bugs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/91 X-Sequence-Number: 30470 Peter Eisentraut wrote: > 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. Column numbers in ORDER BY is ANSI syntax so I don't think calling them "legacy" is accurate. "limited functionality"? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +