X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 49F5A9DCB4C for ; Wed, 7 Dec 2005 01:36:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97940-08 for ; Wed, 7 Dec 2005 01:36:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by postgresql.org (Postfix) with ESMTP id 1AC249DCB3C for ; Wed, 7 Dec 2005 01:36:10 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id jB75aCm14675; Wed, 7 Dec 2005 00:36:12 -0500 (EST) From: Bruce Momjian Message-Id: <200512070536.jB75aCm14675@candle.pha.pa.us> Subject: Re: Lazy vacuum space reclaiming In-Reply-To: <20051014185133.GR23883@pervasive.com> To: "Jim C. Nasby" Date: Wed, 7 Dec 2005 00:36:12 -0500 (EST) CC: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM1133933772-1458-1_ Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.005 required=5 tests=[AWL=0.005] X-Spam-Score: 0.005 X-Spam-Level: X-Archive-Number: 200512/7 X-Sequence-Number: 3355 --ELM1133933772-1458-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Adjustment patch applied. Thanks. --------------------------------------------------------------------------- Jim C. Nasby wrote: > >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 > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 --ELM1133933772-1458-1_ Content-Transfer-Encoding: 7bit Content-Type: text/plain Content-Disposition: inline; filename="/bjm/diff" Index: doc/src/sgml/maintenance.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v retrieving revision 1.51 diff -c -c -r1.51 maintenance.sgml *** doc/src/sgml/maintenance.sgml 4 Nov 2005 23:14:00 -0000 1.51 --- doc/src/sgml/maintenance.sgml 7 Dec 2005 05:35:08 -0000 *************** *** 141,151 **** command. 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 variant of VACUUM can be run ! concurrently with normal database operations. --- 141,152 ---- command. 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 unless the space is ! at the end of the table and an exclusive lock can be obtained easily ! on the table. Unused space at the start or middle of the file does ! not result in the file being shortened and space returned to the ! operating system. This variant of VACUUM can be ! run concurrently with normal database operations. --ELM1133933772-1458-1_--