Re: Drop table vs begin/end transaction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Francisco Reyes <lists(at)natserv(dot)com>
Cc: Pgsql Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Drop table vs begin/end transaction
Date: 2001-11-18 05:37:34
Message-ID: 2100.1006061854@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Francisco Reyes <lists(at)natserv(dot)com> writes:
> My alternative is to use delete from <table>. Besides been slower I wonder
> if this would not make my "vacuum analyze" run much slower.

Consider TRUNCATE TABLE, also. However, that's not transactional,
so the drop/create/fill might be a better bet if you are worried
about bad data during the fill.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Francisco Reyes 2001-11-18 21:01:52 Re: Drop table vs begin/end transaction
Previous Message Francisco Reyes 2001-11-18 04:24:12 Drop table vs begin/end transaction