Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 3577B643E18 for ; Mon, 15 Mar 2010 12:26:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58281-03-2 for ; Mon, 15 Mar 2010 15:26:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 6D418643650 for ; Mon, 15 Mar 2010 12:26:32 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o2FFQN2U018525; Mon, 15 Mar 2010 11:26:23 -0400 (EDT) To: Matthew Wakeling cc: Greg Smith , VJK , pgsql-performance@postgresql.org Subject: Re: Deleting bytea, autovacuum, and 8.2/8.4 differences In-reply-to: References: <20100313211742.GC2178@comppasch2> <600ad6df1003141822u297522dbvf1f7187d0eee803@mail.gmail.com> <600ad6df1003150654if287c53k301f5763e95a3540@mail.gmail.com> <4B9E4762.7060703@2ndquadrant.com> <17919.1268664802@sss.pgh.pa.us> Comments: In-reply-to Matthew Wakeling message dated "Mon, 15 Mar 2010 15:18:07 -0000" Date: Mon, 15 Mar 2010 11:26:22 -0400 Message-ID: <18524.1268666782@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/146 X-Sequence-Number: 37971 Matthew Wakeling writes: > On Mon, 15 Mar 2010, Tom Lane wrote: >> If deleting a whole table is significant for you performance-wise, >> you might look into using TRUNCATE instead. > Might you still end up with a normal delete operation > on the TOAST table when performing a TRUNCATE on the owner table? No, you get a TRUNCATE on its toast table too. regards, tom lane