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

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 (view raw or flat)
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

pgsql-hackers by date

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

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