Re: Yet another "drop table vs delete" question

From: Thomas Finneid <tfinneid(at)fcon(dot)no>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Yet another "drop table vs delete" question
Date: 2009-04-22 15:04:22
Message-ID: 49EF31F6.5040900@fcon.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera wrote:
> Try TRUNCATE. That leaves the less garbage behind and takes the less
> time.

A follow up question, as far as I understand it, delete removes entries
in the fsm, so vacuum has to clean it all up when performing a delete,
is this approximately correct? what happens with truncate? does it
remove everything so that vacuum has almost no work to do or is it
approximately as much work either way?

regards

thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Mead 2009-04-22 15:43:09 Re: Reg: Logging log_min_duration_statement
Previous Message John Cheng 2009-04-22 14:19:56 Re: What may cause - Connection rejected: FATAL: Ident authentication failed for user?