pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthew Wakeling <matthew@flymine.org>
Cc: Greg Smith <greg@2ndquadrant.com>
Cc: VJK <vjkmail@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Deleting bytea, autovacuum, and 8.2/8.4 differences
Date: Mon, 15 Mar 2010 11:26:22 -0400
Message-ID: <18524.1268666782@sss.pgh.pa.us> (raw)
In-Reply-To: <alpine.DEB.2.00.1003151516070.1887@aragorn.flymine.org>
References: <20100313211742.GC2178@comppasch2>
	<600ad6df1003141822u297522dbvf1f7187d0eee803@mail.gmail.com>
	<600ad6df1003150654if287c53k301f5763e95a3540@mail.gmail.com>
	<4B9E4762.7060703@2ndquadrant.com>
	<17919.1268664802@sss.pgh.pa.us>
	<alpine.DEB.2.00.1003151516070.1887@aragorn.flymine.org>

Matthew Wakeling <matthew@flymine.org> 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



view thread (13+ messages)  latest in thread

Message-ID: <18524.1268666782@sss.pgh.pa.us>
Permalink:  ../18524.1268666782@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18524.1268666782@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, matthew@flymine.org, greg@2ndquadrant.com, vjkmail@gmail.com
  Subject: Re: Deleting bytea, autovacuum, and 8.2/8.4 differences
  In-Reply-To: <18524.1268666782@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox