Re: Curious index selection when using a date range - Mailing list pgsql-general

From Tom Lane
Subject Re: Curious index selection when using a date range
Date
Msg-id 8919.1262555632@sss.pgh.pa.us
Whole thread Raw
In response to Re: Curious index selection when using a date range  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-general
Scott Marlowe <scott.marlowe@gmail.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

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Curious index selection when using a date range
Next
From: Baron Schwartz
Date:
Subject: Re: Innotop for postgresl