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 C1E50D1C9C8 for ; Thu, 31 Jul 2003 20:05:30 +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 78365-03 for ; Thu, 31 Jul 2003 17:04:26 -0300 (ADT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id E58AAD1C994 for ; Thu, 31 Jul 2003 17:05:28 -0300 (ADT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 19iJg2-0000Hs-00 for ; Thu, 31 Jul 2003 16:05:30 -0400 Received: by dba2 (Postfix, from userid 1019) id 9E9DACEC9; Thu, 31 Jul 2003 16:05:30 -0400 (EDT) Date: Thu, 31 Jul 2003 16:05:30 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: storage calculations Message-ID: <20030731200529.GD16230@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <20030731165820.GD15615@libertyrms.info> 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/360 X-Sequence-Number: 9700 On Thu, Jul 31, 2003 at 01:41:54PM -0400, pgboy@guthrie.charm.net wrote: > > well, i was close. i didn't realize that i had to do a (non-full) > vacuum to mark deleted space as free. Ooops, I think I was still unclear. VACUUM FULL actually re-arranges the file, and returns it to the filesystem. Plain VACUUM does indeed leave you with a file that is bigger than the actual data stored there. You can learn how much more data you could fit in the files using VACUUM VERBOSE, keeping in mind that tuples may not always fit in an already-allocated page (like when the tuples are large). > available until i do a full vacuum, correct? (at which time the > file size(s) will indicate the amount being used) That's right, yes. > just started looking at fsm. thanks for the pointer there. i hope > i'm not acting too obtuse here. Nope. If you don't ask, you won't learn about it. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110