X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0E3BDD1C911 for ; Mon, 4 Aug 2003 23:36:25 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 59171-02 for ; Mon, 4 Aug 2003 20:35:11 -0300 (ADT) Received: from email04.aon.at (WARSL402PIP5.highway.telekom.at [195.3.96.90]) by svr1.postgresql.org (Postfix) with SMTP id D879BD1C4E1 for ; Mon, 4 Aug 2003 20:36:13 -0300 (ADT) Received: (qmail 233882 invoked from network); 4 Aug 2003 23:36:16 -0000 Received: from m170p001.dipool.highway.telekom.at (HELO cantor) ([62.46.11.33]) (envelope-sender ) by qmail4rs.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 4 Aug 2003 23:36:16 -0000 From: Manfred Koizar To: Manfred Koizar Cc: "Fernando Papa" , Subject: Re: I can't wait too much: Total runtime 432478.44 msec Date: Tue, 05 Aug 2003 01:36:27 +0200 Message-ID: <95rtivs8a4oqhc52ej0gq2k9o0c3nm29pl@4ax.com> References: In-Reply-To: X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/51 X-Sequence-Number: 2868 On Mon, 04 Aug 2003 16:10:18 +0200, I wrote: >SELECT DISTINCT ON ( > cp.id_instalacion, > cp.id_contenido, > cp.generar_vainilla, > cp.fecha_publicacion > ) Cut'n'paste error! fecha_publicacion should not be in the DISTINCT ON list. The same error is in my second suggestion (FROM (subselect)). Servus Manfred