pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Mark Lewis <mark.lewis@mir3.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Evan Carroll <lists@evancarroll.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Fwd: 8.2 Query 10 times slower than 8.1 (view-heavy)
Date: Fri, 31 Aug 2007 17:09:17 -0700
Message-ID: <1188605357.5367.14.camel@archimedes> (raw )
In-Reply-To: <4484.1188603565@sss.pgh.pa.us >
References: <428b865e0708280822u522391ecr5366bb5a6647f1aa@mail.gmail.com >
<dcc563d10708280832u4b0b9abbh1b5053bd1b2a9149@mail.gmail.com >
<428b865e0708280901x3776581qc424bb2c52531475@mail.gmail.com >
<dcc563d10708280907r4b67217eta560c8eab710ab3c@mail.gmail.com >
<428b865e0708280923k57b8cbe4l3dd01fca75975c3f@mail.gmail.com >
<428b865e0708280924ye13ead1j5c198778cdea9c6@mail.gmail.com >
<1188319891.22730.63.camel@archimedes >
<1368.1188326880@sss.pgh.pa.us >
<4484.1188603565@sss.pgh.pa.us >
On Fri, 2007-08-31 at 19:39 -0400, Tom Lane wrote:
> I wrote:
> > Mark Lewis <mark.lewis@mir3.com> writes:
> >> We've been holding back from upgrading to 8.2 because this one is a
> >> show-stopper for us.
>
> > Well, you could always make your own version with this patch reverted:
> > http://archives.postgresql.org/pgsql-committers/2006-11/msg00066.php
> > I might end up doing that in the 8.2 branch if a better solution
> > seems too large to back-patch.
>
> I thought of a suitably small hack that should cover at least the main
> problem without going so far as to revert that patch entirely. What we
> can do is have the IS NULL estimator recognize when the clause is being
> applied at an outer join, and not believe the table statistics in that
> case. I've applied the attached patch for this --- are you interested
> in trying it out on your queries before 8.2.5 comes out?
Wish I could, but I'm afraid that I'm not going to be in a position to
try out the patch on the application that exhibits the problem for at
least the next few weeks.
-- Mark
view thread (12+ messages)
Message-ID: <1188605357.5367.14.camel@archimedes>
Permalink: ../1188605357.5367.14.camel@archimedes/
Also on: postgresql.org/message-id/1188605357.5367.14.camel@archimedes
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: mark.lewis@mir3.com, tgl@sss.pgh.pa.us, lists@evancarroll.com
Subject: Re: Fwd: 8.2 Query 10 times slower than 8.1 (view-heavy)
In-Reply-To: <1188605357.5367.14.camel@archimedes>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox