From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dustin Sallings <dustin@spy.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: inconsistent/weird index usage
Date: Fri, 1 Oct 2004 09:29:36 -0700
Message-ID: <200410010929.36026.josh@agliodbs.com> (raw)
In-Reply-To: <9345.1096641526@sss.pgh.pa.us>
References: <6FA9AB99-1373-11D9-A87D-000A957659CC@spy.net>
<9345.1096641526@sss.pgh.pa.us>
Tom,
> 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?
--
Josh Berkus
Aglio Database Solutions
San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us, dustin@spy.net
Subject: Re: inconsistent/weird index usage
In-Reply-To: <200410010929.36026.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox