From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jean-Arthur Silve <jeanarthur@eurovox.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum analyze infos
Date: Tue, 10 Sep 2002 15:34:29 -0400
Message-ID: <21457.1031686469@sss.pgh.pa.us> (raw)
In-Reply-To: <5.1.1.6.0.20020910175901.05fad0c0@mail.eurovox.fr>
References: <3D592B56.2000306@atentus.com>
<3D592B56.2000306@atentus.com>
<5.1.1.6.0.20020910175901.05fad0c0@mail.eurovox.fr>
Jean-Arthur Silve <jeanarthur@eurovox.fr> writes:
> NOTICE: Pages 7430: Changed 0, Empty 0; Tup 154392: Vac 6271, Keep 0,
> UnUsed 451218.
> Total CPU 0.05s/0.34u sec elapsed 1.80 sec.
> what is the difference wetween Vac and and unUsed ?
IIRC, "Vac" is the number of tuples freed in this VACUUM pass.
"UnUsed" is the total number of free tuple slots (linepointers) in the
table. I'm not sure if that includes the just-freed ones or not.
> Is unUsed spaces unUsed but not deleted ?
Freed slot pointers are available for re-use later. But the fact that
there are many more free pointers than used pointers (450k vs 155k in
your example) suggests to me that a VACUUM FULL might be appropriate.
If you find that VACUUM FULL reduces the file size (number of pages)
significantly, then you should plan on more frequent regular VACUUMs
and/or increasing the postmaster's FSM parameters to prevent dead
space from accumulating again.
regards, tom lane
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: tgl@sss.pgh.pa.us, jeanarthur@eurovox.fr
Subject: Re: Vacuum analyze infos
In-Reply-To: <21457.1031686469@sss.pgh.pa.us>
References: <3D592B56.2000306@atentus.com> <5.1.1.6.0.20020910175901.05fad0c0@mail.eurovox.fr> <21457.1031686469@sss.pgh.pa.us>
* 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