X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9AE5AD966A for ; Fri, 14 Oct 2005 15:51:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72137-01 for ; Fri, 14 Oct 2005 18:51:34 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id 3AF96D93C7 for ; Fri, 14 Oct 2005 15:51:35 -0300 (ADT) Received: by flake.decibel.org (Postfix, from userid 1001) id 9502615232; Fri, 14 Oct 2005 13:51:33 -0500 (CDT) Date: Fri, 14 Oct 2005 13:51:33 -0500 From: "Jim C. Nasby" To: pgsql-docs@postgresql.org Subject: Lazy vacuum space reclaiming Message-ID: <20051014185133.GR23883@pervasive.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200510/42 X-Sequence-Number: 3287 From http://www.postgresql.org/docs/8.0/interactive/maintenance.html: "The first form, known as "lazy vacuum" or just VACUUM, marks expired data in tables and indexes for future reuse; it does not attempt to reclaim the space used by this expired data immediately. Therefore, the table file is not shortened, and any unused space in the file is not returned to the operating system." This isn't completely accurate, though I'm not sure what a good wording would be. Maybe: "The first form, known as "lazy vacuum" or just VACUUM, marks expired data in tables and indexes for future reuse. It only reclaims expired space from tables if it is at the end of the table, and no empty space is reclaimed from indexes." -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461