Skip site navigation (1) Skip section navigation (2)

Re: Use my (date) index, darn it!

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Use my (date) index, darn it!
Date: 2004-01-05 20:27:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
In the last exciting episode, siracusa(at)mindspring(dot)com (John Siracusa) wrote:
> What column(s) should I increase?  Do I have to do anything after increasing
> the statistics, or do I just wait for the stats collector to do its thing?

You have to ANALYZE the table again, to force in new statistics.

And if the index in question is on _just_ the date column, then it is
probably only that date column where the "SET STATISTICS" needs to be
let name="cbbrowne" and tld="" in name ^ "@" ^ tld;;
Faith  is the  quality that  enables you  to eat  blackberry jam  on a
picnic without looking to see whether the seeds move. -- DeMara Cabrera

In response to

pgsql-performance by date

Next:From: Stephan SzaboDate: 2004-01-05 22:33:17
Subject: Re: deferred foreign keys
Previous:From: Christopher BrowneDate: 2004-01-05 20:26:15
Subject: Re: Select max(foo) and select count(*) optimization

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group