Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B5E6C47683C for ; Tue, 10 Sep 2002 15:34:35 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 23878476833 for ; Tue, 10 Sep 2002 15:34:35 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g8AJYTKo021458; Tue, 10 Sep 2002 15:34:29 -0400 (EDT) To: Jean-Arthur Silve Cc: pgsql-admin@postgresql.org Subject: Re: Vacuum analyze infos 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> Comments: In-reply-to Jean-Arthur Silve message dated "Tue, 10 Sep 2002 18:07:50 +0200" Date: Tue, 10 Sep 2002 15:34:29 -0400 Message-ID: <21457.1031686469@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/118 X-Sequence-Number: 5657 Jean-Arthur Silve 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