Re: Select time jump after adding filter; please help me figure out what I'm doing wrong.

From: Andrew Edson <cheighlund(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Select time jump after adding filter; please help me figure out what I'm doing wrong.
Date: 2007-08-15 17:11:51
Message-ID: 878547.46127.qm@web34204.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote: Ah. I think your result is explained by this 8.1.4 bug fix:

2006-05-18 14:57 tgl

* src/backend/optimizer/plan/createplan.c (REL8_1_STABLE): When a
bitmap indexscan is using a partial index, it is necessary to
include the partial index predicate in the scan's "recheck
condition". Otherwise, if the scan becomes lossy for lack of
bitmap memory, we would fail to enforce that returned rows satisfy
the predicate. Noted while studying bug #2441 from Arjen van der
Meijden.

IOW, once the bitmap goes lossy, we'd return *every* row on any page
that the index fingered as having *any* relevant row.

Better press him a little harder. There are a lot of known bugs in
8.1.3, and not any very good reason not to update to a later 8.1.x.

As a really short-term measure, you could possibly avoid this bug by
increasing work_mem enough that the bitmap doesn't get compressed.

regards, tom lane
I'll press as I can...thanks for pointing that out to me. How would I determine how much to increase work_mem by (or to) until then?


---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Madsen 2007-08-15 17:26:02 Re: Interpreting statistics collector output
Previous Message Phoenix Kiula 2007-08-15 17:02:31 Re: Best practice for: ERROR: invalid byte sequence for encoding "UTF8"