Re: Curious index selection when using a date range

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: Robert Gravsjö <robert(at)blogg(dot)se>, pgsql-general(at)postgresql(dot)org
Subject: Re: Curious index selection when using a date range
Date: 2010-01-03 21:53:52
Message-ID: 8919.1262555632@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> writes:
> You might need to crank up the aggresiveness of auto-analyze, at least
> on that one table if not for the whole db.

This might be the same type of scenario Josh was complaining about:
http://archives.postgresql.org/pgsql-hackers/2009-12/msg02308.php
Inequality conditions near the end of a moving data range may not
get estimated very accurately, unless you analyze very often.

I'm fooling with a patch for that right now.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Baron Schwartz 2010-01-04 00:04:36 Re: Innotop for postgresl
Previous Message Scott Marlowe 2010-01-03 21:30:17 Re: Curious index selection when using a date range