Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A91796346E1 for ; Thu, 5 Mar 2009 15:15:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 81174-07 for ; Thu, 5 Mar 2009 15:15:47 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mail.postgresql.org (Postfix) with ESMTP id A2FAE634665 for ; Thu, 5 Mar 2009 15:15:47 -0400 (AST) Received: by qw-out-2122.google.com with SMTP id 5so72055qwd.61 for ; Thu, 05 Mar 2009 11:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=L3JW+gUQs/0rVjuIIUmz7MnrcLMgo8o43qzqp6U0vGo=; b=vbY7mRbUvgf9QilvTrSNoKfjK8SoxlAAH1N4W2x50WQ0smX66E6b1pz/QxVc7Ubh8v fRNBJK2d0DNjFyFdos5HUmkNSm57RC2fzqWJCHA8P+pKfiRDGQ+o9Wgot9wPLx/FHrDr aLSJpu0ohim0As6HDNSih4c15S4oaGlFe6+7M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=oBAMgae0mpb/UyxraIFRezD/jQTnKB6z5Z/1+Jy7Eu2khHOXl06323kZ25swQi9Cn+ 9yrXoV2Ux/kR7PPgAA6lRh4tFC6+jnO/NTE1b9IUuNAlEixwkJ/A9MbYT70t1u/88ODD mtC8gmhWUoxEfuX4l0fQ/1qEqsCqbRvNyygHM= MIME-Version: 1.0 Received: by 10.229.82.10 with SMTP id z10mr1283172qck.83.1236280531422; Thu, 05 Mar 2009 11:15:31 -0800 (PST) In-Reply-To: <49AFCC30.EE98.0025.0@wicourts.gov> References: <2870.1236050632@sss.pgh.pa.us> <17797.1236119652@sss.pgh.pa.us> <49AFCC30.EE98.0025.0@wicourts.gov> Date: Thu, 5 Mar 2009 14:15:27 -0500 Message-ID: <603c8f070903051115h58643593rb5f6301f3d5cf988@mail.gmail.com> Subject: Re: Postgres 8.3, four times slower queries? From: Robert Haas To: Kevin Grittner Cc: Aaron Guyon , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/55 X-Sequence-Number: 32977 On Thu, Mar 5, 2009 at 1:57 PM, Kevin Grittner wrote: >>>> Aaron Guyon wrote: >> 8.3.3: 1195 ms >> 8.2.12: 611 ms > > Could you send the non-commented lines from the postgresql.conf files > from both installations? > > If feasible, update to the latest bug-fix version of 8.3. > > Also, if you haven't already done so, try setting effective_cache_size > = '3GB' and random_page_cost = 2 for the 8.3 database and restart to > see what kind of plan you get. I still there's a problem with that index, now it's called idx_payment_amount_payment_id. What do you get from this? select * from pg_index where indexrelid = 'idx_payment_amount_payment_id'::regclass; Have you tried: reindex table payment_amount ...Robert