Re: Server instrumentation for 8.1

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: andrew(at)supernews(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Server instrumentation for 8.1
Date: 2005-05-13 09:17:39
Message-ID: 428470B3.10604@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew - Supernews wrote:
> On 2005-05-12, Andreas Pflug <pgadmin(at)pse-consulting(dot)de> wrote:

>
> relpages is updated from the value of RelationGetNumberOfBlocks(rel) which
> is definitive (it gets the value from smgr which gets it from the physical
> file sizes); the only inaccuracy is that it is correct only as of the time
> that the pg_class row was last updated (as done by any VACUUM, any ANALYZE,
> any CLUSTER or any CREATE INDEX on the table, at minimum).

"accurate unless vacuum not running".
... which renders it quite useless to find out about *real* disk usage.
Interesting for the query planner, not for the admin to know when a
vacuum full might be necessary.

Regards,
Andreas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Jowett 2005-05-13 11:22:52 Re: SQL_ASCII vs. 7-bit ASCII encodings
Previous Message Dave Page 2005-05-13 07:44:21 Re: Server instrumentation for 8.1