Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 586239FA240 for ; Tue, 28 Aug 2007 13:14:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 71910-02-4 for ; Tue, 28 Aug 2007 13:14:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id CD91E9F9606 for ; Tue, 28 Aug 2007 13:14:28 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l7SGEPYH015641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Aug 2007 09:14:26 -0700 Message-ID: <46D44A98.90006@commandprompt.com> Date: Tue, 28 Aug 2007 09:17:28 -0700 From: "Joshua D. Drake" User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 To: Gregory Stark CC: Evan Carroll , pgsql-performance@postgresql.org Subject: Re: 8.2 Query 10 times slower than 8.1 (view-heavy) References: <428b865e0708280822u522391ecr5366bb5a6647f1aa@mail.gmail.com> <87k5rfslbf.fsf@oxford.xeocode.com> In-Reply-To: <87k5rfslbf.fsf@oxford.xeocode.com> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.1/4087/Tue Aug 28 03:05:35 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 28 Aug 2007 09:14:26 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/355 X-Sequence-Number: 26485 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gregory Stark wrote: > "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? Although simplifying the query is probably in order, doesn't it stand to reason that there may be a problem here. 10x difference (in the worse) from a lower version to a higher, is likely wrong :) Joshua D. Drake > - -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 24x7/Emergency: +1.800.492.2240 PostgreSQL solutions since 1997 http://www.commandprompt.com/ UNIQUE NOT NULL Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate PostgreSQL Replication: http://www.commandprompt.com/products/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG1EqYATb/zqfZUUQRAighAJ9g+Py+CRwsW7f5QWuA4uZ5G26a9gCcCXG2 0Le2KBGpdhDZyu4ZT30y8RA= =MfQw -----END PGP SIGNATURE-----