Re: Planner problems in 8.2.4 and 8.2.5 (was: Possible planner bug/regression introduced in 8.2.5)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Sabino Mullane <greg(at)turnstep(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Planner problems in 8.2.4 and 8.2.5 (was: Possible planner bug/regression introduced in 8.2.5)
Date: 2007-11-07 23:04:13
Message-ID: 11335.1194476653@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I wrote:
>> This might be a bug in the LIKE estimator (if so, it's in 8.2.3 as
>> well). I don't have time to look closer right now, but can you show us
>> the pg_stats row for orders_smaller.order_number?

> Oh, never mind that ... on inspection, the NOT LIKE selectivity
> estimator is obviously broken: patternsel() doesn't realize it needs
> to negate the results of the operator when applying same to histogram
> entries.

I've applied a patch that should make this better:
http://archives.postgresql.org/pgsql-committers/2007-11/msg00101.php

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Zdenek Kotala 2007-11-08 10:04:01 Re: BUG #3728: pthread autoconf hangs
Previous Message Tom Lane 2007-11-07 22:58:06 Re: Test suite fails on alpha architecture