From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Re: Suggestions wanted for 7.2.4 query
Date: Mon, 5 May 2003 10:59:11 -0700
Message-ID: <200305051059.11751.josh@agliodbs.com> (raw)
In-Reply-To: <200305041059.41468.josh@agliodbs.com>
References: <200305031928.52906.josh@agliodbs.com>
<4612.1052068989@sss.pgh.pa.us>
<200305041059.41468.josh@agliodbs.com>
Folks,
> That may be solvable without forcing a seq scan on "events", simply by
> overdetermining the criteria on date. That is, I can't apply the date
> criteria to "events" because that would require running date calucations on
> each row forcing a seq scan ( i.e. (event_date + duration) between date_one
> and date_two would require a seq scan), but I can apply a broadend version
of
> the criteria to "events" ( i.e. event_date between (date_one - 1 month) and
> (date_two + 1 day)) which would give the planner the idea that it is
> returning a minority of rows from "events".
If anyone is interested, the above idea worked.
--
-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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us
Subject: Re: Suggestions wanted for 7.2.4 query
In-Reply-To: <200305051059.11751.josh@agliodbs.com>
References: <200305031928.52906.josh@agliodbs.com> <4612.1052068989@sss.pgh.pa.us> <200305041059.41468.josh@agliodbs.com> <200305051059.11751.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