Re: detecting poor query plans

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: detecting poor query plans
Date: 2003-11-26 17:38:47
Message-ID: 20031126173847.GA15041@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Nov 26, 2003 at 11:59:33AM -0500, Neil Conway wrote:

> > In some situations that doesn't really matter, as the same plan
> > would have gotten picked anyway.
>
> The hint is NOT "the chosen plan was non-optimal"; the hint is "the
> query planner did not produce an accurate row count estimate for this
> node in the query tree."

Maybe it could only be done for SeqScan and IndexScan nodes, which are
probably the most common source of bad estimates related to poor
statistics.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"At least to kernel hackers, who really are human, despite occasional
rumors to the contrary" (LWN.net)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2003-11-26 17:40:08 Optimizer cost calculation
Previous Message Andreas Pflug 2003-11-26 17:35:59 Re: pg_restore and create FK without verification check