X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id EE350D1C4D5 for ; Thu, 31 Jul 2003 16:58:21 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 61774-06 for ; Thu, 31 Jul 2003 13:57:16 -0300 (ADT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id 0776DD1C4D0 for ; Thu, 31 Jul 2003 13:58:20 -0300 (ADT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 19iGku-0005dZ-00 for ; Thu, 31 Jul 2003 12:58:20 -0400 Received: by dba2 (Postfix, from userid 1019) id 52FE7CEC9; Thu, 31 Jul 2003 12:58:20 -0400 (EDT) Date: Thu, 31 Jul 2003 12:58:20 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: storage calculations Message-ID: <20030731165820.GD15615@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/356 X-Sequence-Number: 9696 On Thu, Jul 31, 2003 at 08:51:09AM -0400, pgboy@guthrie.charm.net wrote: > > well, i can admit that i am confused. my assumption is that when a row > is deleted in pg, that row is merely marked as 'gone' until a vacuum-full > is done. my further assumption is that if i continue to add rows, those > rows are not necessarily appended to the end of the physical data file, > but can be written over 'deleted' rows. Your assumption is wrong. VACUUM without FULL will allow you to write over the free space now available in your data files, subject to the limitations of tracking as determined by your FSM settings. VACUUM FULL actually shortens the data file. Except for cases having to do with large tuples that won't fit in the previous page, VACUUM FULL means that you can't fit any more data in that file, once the VACUUM FULL is done. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110