Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4F9E91337B69 for ; Wed, 11 May 2011 15:48:01 -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 42507-08 for ; Wed, 11 May 2011 18:47:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id 4B1FE133798E for ; Wed, 11 May 2011 15:47:53 -0300 (ADT) Received: by fxm17 with SMTP id 17so583386fxm.19 for ; Wed, 11 May 2011 11:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:date:content-type:x-mailer :content-transfer-encoding:message-id:mime-version; bh=GFzy37x+K9CddZCHdmLI1qwByaxVvMdlClUSGNmPq3I=; b=FcVO3zk6Mvu88viM1LzIpDZE99urh55KgUuwhnPYxiodv9ve1v5cBaVmBNFL+tcUfp 9V51d/JsAGlmPwGE1h0seuUmSIIQXtHxY+Ak54a9IytGjSgq1UU16VZLiNaR3KAD6PsZ bb35b5nqzCWAwEoz7hGRyEebdgLKfa35oVnPU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:date:content-type:x-mailer :content-transfer-encoding:message-id:mime-version; b=w/aMLSjFVZAEA9/wHoqNknFCCwUnGE8UHJYI68HmOdIzViOhS65EExTMS/fdhmpyMQ 0JDRoe/Vyw/+YasweHWZ8txYXnZOih6Wb/V6T3zax335ASE3A5M/oMMmB3k35kxntTnK mcS4Ij7JO6UNUr8LOkahYlr5+nMxqBklIuRd8= Received: by 10.223.17.142 with SMTP id s14mr473450faa.145.1305139671923; Wed, 11 May 2011 11:47:51 -0700 (PDT) Received: from [192.168.42.202] ([80.10.46.76]) by mx.google.com with ESMTPS id c3sm186048fav.3.2011.05.11.11.47.48 (version=SSLv3 cipher=OTHER); Wed, 11 May 2011 11:47:51 -0700 (PDT) Subject: collation problem on 9.1-beta1 From: Marc Cousin To: pgsql-bugs@postgresql.org Date: Wed, 11 May 2011 20:47:43 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.1 Content-Transfer-Encoding: 8bit Message-ID: <1305139670.25203.3.camel@marco-dalibo> Mime-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.118 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_SORBS_WEB=0.77, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201105/94 X-Sequence-Number: 30233 Hi, 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 STATEMENT: SELECT * from (values ('llegar'),('llorer'),('lugar')) as tmp order by 1 collate "es_ES.utf8"; ^ marc=# SELECT * from (values ('llegar'),('llorer'),('lugar')) as tmp order by column1 collate "es_ES.utf8"; column1 --------- llegar llorer lugar (3 rows) Of course, without the collate keyword, the «order by 1» works as usual. Regards Marc