Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 93FA5B5DE23 for ; Thu, 2 Jun 2011 12:28:59 -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 40012-01 for ; Thu, 2 Jun 2011 15:28:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174]) by mail.postgresql.org (Postfix) with ESMTP id 71437B5DE15 for ; Thu, 2 Jun 2011 12:28:52 -0300 (ADT) Received: by wya21 with SMTP id 21so685155wya.19 for ; Thu, 02 Jun 2011 08:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=7vDbQNytzu/SafYPiBycF85p7hneTo3YSmisOe105ms=; b=bbfkXbfwBJ+g9UMNRo2nBFTYbyg+nn5XRZql6DDXZ9SBYUlvffWHDYR6g3N6LLMPmq twlfgYHXx9qCj5llpClKoJHoGWA5U5tLmzvRhPsOxFTsyCEbwMLbULu+Jpwu2p4+pkMp Cu/zBwVQfFfr7AKZYO5Nve2y1s5F3WUGM//Ds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=kO1E5Aok0ZimEGk6f8f1Mw5EupdEYuvTH8CU0iv4kATHBAArVnynujoPItp/xIrIL9 P8cELo1MTgUYsXGUcw4EBJrJQ8z70Y4xRr2JjeBeyrWE//4KhMcjEfHkz+sLxoIQiDG6 3bnDcGp1GRfhNT+VLslaEkKcJIj3M0uTIlAL8= Received: by 10.227.162.133 with SMTP id v5mr883234wbx.14.1307028531510; Thu, 02 Jun 2011 08:28:51 -0700 (PDT) Received: from [192.168.0.2] (gev44-1-78-228-108-65.fbx.proxad.net [78.228.108.65]) by mx.google.com with ESMTPS id p21sm459850wbh.57.2011.06.02.08.28.49 (version=SSLv3 cipher=OTHER); Thu, 02 Jun 2011 08:28:50 -0700 (PDT) Message-ID: <4DE7AC31.40805@gmail.com> Date: Thu, 02 Jun 2011 17:28:49 +0200 From: Marc Cousin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110503 Thunderbird/3.1.10 MIME-Version: 1.0 To: Peter Eisentraut CC: pgsql-bugs@postgresql.org Subject: Re: collation problem on 9.1-beta1 References: <1305139670.25203.3.camel@marco-dalibo> <4542.1305140337@sss.pgh.pa.us> <1307016585.2279.8.camel@vanquo.pezone.net> In-Reply-To: <1307016585.2279.8.camel@vanquo.pezone.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201106/18 X-Sequence-Number: 30397 On 02/06/2011 14:09, 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. >> >> (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. I wasn't complaining at all, just wondering if this was intended or not :) But I'm sure that I won't be the only one to be caught by this, as it took me about ten minutes to fall in this trap. That was the main reason I reported this problem in the first place :)