Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id BBF312E007E for ; Wed, 19 Mar 2008 10:37:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 39159-03 for ; Wed, 19 Mar 2008 10:37:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 72CF72E0037 for ; Wed, 19 Mar 2008 10:37:42 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-114-75.bk8-dsl.surnet.cl [200.126.114.75]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m2JDc5s6027590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 Mar 2008 06:38:07 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id BC42347BFE; Wed, 19 Mar 2008 10:37:33 -0300 (CLST) Date: Wed, 19 Mar 2008 10:37:33 -0300 From: Alvaro Herrera To: Mark Steben Cc: "'Chris'" , pgsql-performance@postgresql.org Subject: Re: question on TRUNCATE vs VACUUM FULL Message-ID: <20080319133733.GA6845@alvh.no-ip.org> References: <47E0680D.6020101@gmail.com> <011e01c889c4$4a8dee30$14010a0a@dei26g028575> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <011e01c889c4$4a8dee30$14010a0a@dei26g028575> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Wed, 19 Mar 2008 06:38:08 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/397 X-Sequence-Number: 29351 Mark Steben escribió: > My confusion lies in the fact that we empty table C after > Function D finishes. There aren't any current data or records > To touch on the table. The MVCC leftovers are all purely dead > Rows that should be deleted. Not if there are open transactions that might want to look at the table after the VACUUM FULL is completed. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.