Re: inconsistent/weird index usage

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Dustin Sallings <dustin(at)spy(dot)net>, pgsql-performance(at)postgresql(dot)org
Subject: Re: inconsistent/weird index usage
Date: 2004-10-01 16:34:15
Message-ID: 10775.1096648455@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Josh Berkus <josh(at)agliodbs(dot)com> writes:
>> Most of the problem here comes from the fact that "current_date - 7"
>> isn't reducible to a constant and so the planner is making bad guesses
>> about how much of each table will be scanned.

> I thought this was fixed in 7.4. No?

No. It's not fixed as of CVS tip either, although there was some talk
of doing something in time for 8.0.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2004-10-01 17:10:40 Re: Caching of Queries
Previous Message Josh Berkus 2004-10-01 16:29:36 Re: inconsistent/weird index usage