Re: SQL explainer problem for 8.0.1?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Richard Sang <xhfdc(at)hotmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: SQL explainer problem for 8.0.1?
Date: 2005-02-22 00:49:13
Message-ID: 4064.1109033353@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Neil Conway <neilc(at)samurai(dot)com> writes:
> Evidently the optimizer chooses a different plan in the presence of the
> WHERE clause, but that plan appears to be pretty bad. However, it is
> tough to say more without EXPLAIN output for both queries (if possible,
> get EXPLAIN ANALYZE output -- although this might take too long for the
> second query).

And the schemas for the tables involved --- without knowing what indexes
are available it's impossible to guess much.

> Also, have you run ANALYZE recently?

Indeed.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Barry Brown 2005-02-22 00:55:37 BUG #1498: Default permissions allow any user to create objects in any database (revised)
Previous Message Neil Conway 2005-02-22 00:44:13 Re: BUG #1482: SQL ERROR IN 7.4.7