Re: pg_class : reltuples

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sandeep Joshi <sjoshi(at)Zambeel(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_class : reltuples
Date: 2000-11-22 20:20:20
Message-ID: 18391.974924420@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sandeep Joshi <sjoshi(at)Zambeel(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sandeep Joshi 2000-11-22 20:20:59 Re: pg_class : reltuples
Previous Message j.logsdon 2000-11-22 20:17:33 Getting started on Linux RH6.2 ...