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 AE9C5D1B500 for ; Fri, 3 Oct 2003 21:38:29 +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 50123-09 for ; Fri, 3 Oct 2003 18:37:40 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 48A8ED1B502 for ; Fri, 3 Oct 2003 18:37:38 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3719802; Fri, 03 Oct 2003 14:38:14 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Dror Matalon , pgsql-performance@postgresql.org Subject: Re: Speeding up Aggregates Date: Fri, 3 Oct 2003 14:35:46 -0700 User-Agent: KMail/1.4.3 References: <20031003202120.GO87525@rlx11.zapatec.com> <200310031407.10343.josh@agliodbs.com> <20031003212848.GP87525@rlx11.zapatec.com> In-Reply-To: <20031003212848.GP87525@rlx11.zapatec.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200310031435.46838.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/109 X-Sequence-Number: 3857 Dror, > I am using 7.4, and had tried NOT EXISTS and didn't see any > improvements. It wouldn't if you're using 7.4, which has improved IN performance immensel= y. What happens if you stop using a function and instead use a subselect? --=20 -Josh Berkus Aglio Database Solutions San Francisco