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

Re: problem on table statistics

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>, "Silvio Brandani" <silvio(dot)brandani(at)tech(dot)sdb(dot)it>
Subject: Re: problem on table statistics
Date: 2012-01-09 15:48:00
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Silvio Brandani <silvio(dot)brandani(at)tech(dot)sdb(dot)it> wrote:
> So there is something wrong with table statistics.
It picks the plan which it calculates to have the lowest cost.  If
the lowest cost doesn't correspond to the fastest plan, the most
common cause is that your costing factors need adjustment.
> How can I reset the pg_statistics for this table???
It can also be that statistics are stale or are not fine-grained
enough.  You can get fresh statistics with the ANALYZE or VACUUM
ANALYZE statements.  You can change the granularity of statistics
globally or for particular columns, but that just changes the
behavior of subsequent ANALYZE runs; it doesn't force an immediate
Your post was a little light on the sort of details which allow
people to be most helpful.  If problems persist, please read this
before posting again:

In response to

pgsql-admin by date

Next:From: Eugene BudanovDate: 2012-01-10 06:05:14
Subject: Kerberized login to Postgres database
Previous:From: Silvio BrandaniDate: 2012-01-09 15:08:57
Subject: Re: problem on table statistics

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