X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E8E2C9DC98E for ; Wed, 11 Jan 2006 16:07:34 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73571-04 for ; Wed, 11 Jan 2006 16:07:35 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from resmta04.ono.com (smtp.ono.com [62.42.230.12]) by postgresql.org (Postfix) with ESMTP id 9C2019DC8DE for ; Wed, 11 Jan 2006 16:07:32 -0400 (AST) Received: from Zeus (84.120.5.248) by resmta04.ono.com (7.2.052) id 4377F29600509170 for pgsql-sql@postgresql.org; Wed, 11 Jan 2006 21:07:33 +0100 From: "Mauricio Fernandez A." To: Subject: Re: Unable to identify an ordering operator '<' for type 'smallint[]' Date: Wed, 11 Jan 2006 21:07:40 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20302.1137003871@sss.pgh.pa.us> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.559 required=5 tests=[AWL=-0.360, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.559 X-Spam-Level: * X-Archive-Number: 200601/45 X-Sequence-Number: 23834 Thanks Jaime, I know, you are right : it´s a very bad idea to develop in version that is superior to the one in production, but, mmmm.... I don`t know, you win ;). And thanks to Tom too, because he told the key phrase "GROUP BY ac.potencialpacientes", as I can skip that clause, now I get the result expected Thanks for your help Mauricio Fernández A. Ingeniero de Sistemas U. Autónoma de Manizales -----Mensaje original----- De: Tom Lane [mailto:tgl@sss.pgh.pa.us] Enviado el: miércoles, 11 enero, 2006 19:25 Para: Mauricio Fernandez A. CC: pgsql-sql@postgresql.org Asunto: Re: [SQL] Unable to identify an ordering operator '<' for type 'smallint[]' "Mauricio Fernandez A." writes: > The only strange thing in the query is that ac.potencialpacientes is > smallint[] (in fact is the only thing with sense I can see in the error > message) but I am not using the '<' operator as it suggest. No, but you're trying to GROUP BY ac.potencialpacientes, and in 7.3 the only way to do grouping is sort/unique. So you have to be able to sort the datatype, and 7.3 doesn't have code to do comparison of arrays. > Can somebody help me?. Upgrade. 7.3 is pretty ancient anyway. Quite aside from lack of features, its performance is poor compared to 8.1. regards, tom lane