Re: strange row number estimates in pg9.1rc1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: strange row number estimates in pg9.1rc1
Date: 2011-08-30 16:41:39
Message-ID: 18366.1314722499@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Sergey E. Koposov" <math(at)sai(dot)msu(dot)ru> writes:
> I wonder what should be the best way to proceed for already migrated
> databases -- running analyze repeatedly may not be the best way for
> very large clusters with large tables...

You can just manually update pg_class.reltuples to a more reasonable
value.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Kupershmidt 2011-08-30 16:44:43 Re: dropdb and dropuser: IF EXISTS
Previous Message Sergey E. Koposov 2011-08-30 16:34:12 Re: strange row number estimates in pg9.1rc1