Re: 8.4.7, incorrect estimate - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: 8.4.7, incorrect estimate
Date
Msg-id 4DBE8FD8020000250003D101@gw.wicourts.gov
Whole thread Raw
In response to Re: 8.4.7, incorrect estimate  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Wayne Conrad <wconrad@yagni.com> writes:

>>   Total runtime: 244572.432 ms

> I'll take a look at fixing that, but not sure if it'll be
> reasonable to back-patch or not.  In the meantime, you need to
> look into restructuring the query to avoid nesting the EXISTS
> probes, if possible.

Wayne, I think your best bet at this point may be to just (INNER)
JOIN the three tables, and if there is a possibility of duplicates
to use SELECT DISTINCT.

-Kevin

pgsql-performance by date:

Previous
From: Greg Smith
Date:
Subject: Re: The right SHMMAX and FILE_MAX
Next
From: Wayne Conrad
Date:
Subject: Re: 8.4.7, incorrect estimate