From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Jaquay <djaquay@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Query across a date range
Date: Fri, 07 Jan 2005 14:35:04 -0500
Message-ID: <28727.1105126504@sss.pgh.pa.us> (raw)
In-Reply-To: <ad4aa5a805010711171a3c1696@mail.gmail.com>
References: <20050107182106.6CBEC5AF685@svr4.postgresql.org>
<ad4aa5a805010711171a3c1696@mail.gmail.com>
David Jaquay <djaquay@gmail.com> writes:
> Summary: Doing a two or three table join for a date range performs
> worse than doing the same query individually for each date in the
> range.
Could we see EXPLAIN ANALYZE, not just EXPLAIN, results?
Also, have you ANALYZEd lately? If the estimated row counts are at all
accurate, I doubt that forcing a nestloop indexscan would improve the
situation.
Also, what PG version is this?
regards, tom lane
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: tgl@sss.pgh.pa.us, djaquay@gmail.com
Subject: Re: Query across a date range
In-Reply-To: <28727.1105126504@sss.pgh.pa.us>
* 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