Re: optimization histograms

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-hackers(at)postgresql(dot)org>,"amit sehas" <cun23(at)yahoo(dot)com>
Subject: Re: optimization histograms
Date: 2010-12-21 17:32:03
Message-ID: 4D10903302000025000388B8@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

amit sehas <cun23(at)yahoo(dot)com> wrote:

> for the histograms for cost based optimization, is there a rule of
> thumb on how often to rebuild them?

In recent major versions, autovacuum should normally keep you in
good shape. The exception is when you make major changes to the
contents of a table (such as in a bulk data load) and then
immediately try to use the table before autovacuum has had time to
notice the activity and generate fresh statistics; for these cases
you probably want to do a manual run.

For more information, see:

http://www.postgresql.org/docs/current/interactive/routine-vacuuming.html#VACUUM-FOR-STATISTICS

-Kevin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-12-21 18:00:26 Re: GiST insert algorithm rewrite
Previous Message amit sehas 2010-12-21 16:51:12 optimization histograms