Re: Server instrumentation for 8.1 - Mailing list pgsql-hackers

From Andrew - Supernews
Subject Re: Server instrumentation for 8.1
Date
Msg-id slrnd8699j.1c8o.andrew+nonews@trinity.supernews.net
Whole thread Raw
In response to Server instrumentation for 8.1  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: Server instrumentation for 8.1  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-hackers
On 2005-05-12, Andreas Pflug <pgadmin@pse-consulting.de> wrote:
> Andrew - Supernews wrote:
>> dbsize looks at the actual size of files on disk; newsysviews does not,
>> it shows estimated sizes as taken from relpages.
>
> Which shows *net* size only, not actual size because non-vacuumed rows 
> are not covered. It is correct after a vacuum full only.

nonsense

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).

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services


pgsql-hackers by date:

Previous
From: "John Hansen"
Date:
Subject: Re: SQL_ASCII vs. 7-bit ASCII encodings
Next
From: Douglas McNaught
Date:
Subject: Re: New Contrib Build?