Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id C645B9F9DB9 for ; Tue, 28 Aug 2007 12:58:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 20603-03 for ; Tue, 28 Aug 2007 12:58:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [62.232.55.118]) by postgresql.org (Postfix) with ESMTP id 1D46C9FA251 for ; Tue, 28 Aug 2007 12:58:20 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1IQ3SG-0002fl-Mu; Tue, 28 Aug 2007 16:58:12 +0100 To: "Evan Carroll" Cc: Subject: Re: 8.2 Query 10 times slower than 8.1 (view-heavy) In-Reply-To: <428b865e0708280822u522391ecr5366bb5a6647f1aa@mail.gmail.com> (Evan Carroll's message of "Tue\, 28 Aug 2007 10\:22\:11 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 2163) References: <428b865e0708280822u522391ecr5366bb5a6647f1aa@mail.gmail.com> From: Gregory Stark Organization: EnterpriseDB Date: Tue, 28 Aug 2007 16:58:12 +0100 Message-ID: <87k5rfslbf.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/354 X-Sequence-Number: 26484 "Evan Carroll" writes: "Evan Carroll" writes: > Dearest dragon hunters and mortal wanna-bes, > > I recently upgraded a system from Apache2/mod_perl2 to > Lighttpd/fastcgi. The upgrade went about as rough as can be. While in > the midst of a bad day, I decided to make it worse, and upgrade Pg 8.1 > to 8.2. Most people I talk to seem to think 8.1 was a lemon release; > not I. It worked excellent for me for the longest time, and I had no > good reason to upgrade it, other than to just have done so. I assume you mean 8.1.9 and 8.2.4? > The following material is provided for your assisting-me-pleasure: the > original SQL; the \ds for all pertinent views and tables; the output > of Explain Analyze; and the original query. While I do in fact enjoy analyzing query plans I have to say that 75-line plans push the bounds of my assisting-you-pleasure. Have you experimented with simplifying this query? -- Gregory Stark EnterpriseDB http://www.enterprisedb.com