Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 79CC3632A86 for ; Thu, 15 Jul 2010 12:21:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 64302-08 for ; Thu, 15 Jul 2010 15:21:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 71BFD632A64 for ; Thu, 15 Jul 2010 12:21:44 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 3B933348037; Thu, 15 Jul 2010 08:21:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A8fNYFofqtAi; Thu, 15 Jul 2010 08:21:36 -0700 (PDT) Received: from alvh.no-ip.org (pc-157-80-86-200.cm.vtr.net [200.86.80.157]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id C9B91348002; Thu, 15 Jul 2010 08:21:35 -0700 (PDT) Received: by alvh.no-ip.org (Postfix, from userid 1000) id E8C7F43820A; Thu, 15 Jul 2010 11:21:33 -0400 (CLT) Content-Type: text/plain; charset=utf8 Cc: Kevin Grittner , pgsql-performance Subject: Re: Identical query slower on 8.4 vs 8.3 From: Alvaro Herrera To: Patrick Donlin In-reply-to: <1123546138.13276371279206773000.JavaMail.root@mm-mailstore02.merit.edu> References: <1123546138.13276371279206773000.JavaMail.root@mm-mailstore02.merit.edu> Date: Thu, 15 Jul 2010 11:21:33 -0400 Message-Id: <1279207110-sup-2392@alvh.no-ip.org> User-Agent: Sup/0.11 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001 X-Spam-Level: X-Archive-Number: 201007/238 X-Sequence-Number: 39627 Excerpts from Patrick Donlin's message of jue jul 15 11:12:53 -0400 2010: > I'll read over that wiki entry, but for now here is the EXPLAIN ANALYZE output assuming I did it correctly. I have run vacuumdb --full --analyze, it actually runs as a nightly cron job. These plans seem identical (though the fact that the leading whitespace was trimmed means it's untrustworthy -- please in the future send them as text attachments instead so that your mailer doesn't interfere with formatting). The 8.4 plan is even a full second faster, according to the "total runtime" line. The slowness could've been caused by caching effects ...