Re: Query across a date range

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Jaquay <djaquay(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Query across a date range
Date: 2005-01-07 19:35:04
Message-ID: 28727.1105126504@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

David Jaquay <djaquay(at)gmail(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2005-01-07 19:35:11 Re: Query across a date range
Previous Message David Jaquay 2005-01-07 19:17:31 Query across a date range