From: Peter Eisentraut <peter_e@gmx.net>
To: pgboy@guthrie.charm.net
Cc: mendola@bigfoot.com
Cc: pgsql-admin@postgresql.org
Subject: Re: storage calculations
Date: Thu, 31 Jul 2003 11:01:24 +0200 (CEST)
Message-ID: <Pine.LNX.4.56.0307301424060.1171@krusty.credativ.de> (raw)
In-Reply-To: <20030730114317.3F7E113E23@guthrie.charm.net>
References: <20030730114317.3F7E113E23@guthrie.charm.net>
pgboy@guthrie.charm.net writes:
> sorry, when i referred to "disk space used" i meant the actual amount
> used by live rows. if i insert 1000 rows then delete 999 of them, the
> disk file will be the size of the 100 row container (make that 1000, not
> 100 - i cannot backspace here) until i do a "vacuum full" - which does a
> table lock, which is a bad thing.
The task that you originally described was that you want to monitor when
the disk is getting full. For that task, you need to take into account
the actual size of the data on disk, not the size after a "vacuum full"
which you say you do not want to execute. Basing a disk full monitor on
hypothetical sizes sounds pretty useless.
> given that, i'd like to try to be able to calculate the number of
> bytes a row uses given its schema. i've seen this kind of
> documentation for other dbs, i just cannot seem to find it
> in the postgresql docs.
There is some information about that in the FAQ, but keep in mind that
rows may be compressed or moved to secondary storage automatically.
--
Peter Eisentraut peter_e@gmx.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: peter_e@gmx.net, pgboy@guthrie.charm.net, mendola@bigfoot.com
Subject: Re: storage calculations
In-Reply-To: <Pine.LNX.4.56.0307301424060.1171@krusty.credativ.de>
References: <20030730114317.3F7E113E23@guthrie.charm.net> <Pine.LNX.4.56.0307301424060.1171@krusty.credativ.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox