Re: pg_class : reltuples

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sandeep Joshi <sjoshi@Zambeel.com>
Cc: pgsql-general@postgresql.org
Date: 2000-11-22T20:20:20Z
Lists: pgsql-general
Sandeep Joshi <sjoshi@Zambeel.com> writes:
> I had to run "vacuum" to get corect no.s.  Why is that? I thought
> "pg_class" will be upto date.

reltuples and relpages are just updated by vacuum (and maybe create
index).  They're not intended to be accurate values, only approximate
statistics.

			regards, tom lane