Re: inconsistent/weird index usage - Mailing list pgsql-performance

From Tom Lane
Subject Re: inconsistent/weird index usage
Date
Msg-id 10775.1096648455@sss.pgh.pa.us
Whole thread Raw
In response to Re: inconsistent/weird index usage  (Josh Berkus <josh@agliodbs.com>)
Responses Re: inconsistent/weird index usage
List pgsql-performance
Josh Berkus <josh@agliodbs.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

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: inconsistent/weird index usage
Next
From: "Aaron Werman"
Date:
Subject: Re: Caching of Queries