Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 348149FB204 for ; Mon, 8 Jan 2007 14:59:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 63589-06 for ; Mon, 8 Jan 2007 14:59:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from globalrelay.com (mail1.globalrelay.com [204.92.49.200]) by postgresql.org (Postfix) with ESMTP id CBCD79FB1DE for ; Mon, 8 Jan 2007 14:59:16 -0400 (AST) X-Virus-Scanned: Scanned by GRC-AntiVirus Gateway X-GR-Acctd: YES Received: from [71.215.208.64] (HELO DaveEMachine) by globalrelay.com (CommuniGate Pro SMTP 4.2.3) with ESMTP id 121546768; Mon, 08 Jan 2007 10:59:45 -0800 From: "Dave Dutcher" To: "'Tom Lane'" Cc: Subject: Re: Slow Query on Postgres 8.2 Date: Mon, 8 Jan 2007 12:59:14 -0600 Message-ID: <012601c73357$1736ff00$8300a8c0@tridecap.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Importance: Normal In-Reply-To: <8870.1167966245@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/99 X-Sequence-Number: 22700 > -----Original Message----- > From: pgsql-performance-owner@postgresql.org=20 > [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Tom Lane >=20 > [ fools around with it for awhile... ] I think this is already fixed > for 8.2.1. Note the costs of the two related index scans: I installed 8.2.1 this morning and it works much better. The query that = was taking 3411.429ms on 8.2.0 now takes 9.3ms. Thanks for your help.