Re: PostGres Doubt

From: Scott Marlowe <scott(dot)marlowe(at)ihs(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PostGres Doubt
Date: 2002-06-11 16:10:50
Message-ID: Pine.LNX.4.33.0206111009120.18316-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 10 Jun 2002, Dann Corbit wrote:

> If you are going to completely replace the data in a table, drop the
> table, create the table, and use the bulk copy interface.

Actually, that's a bad habit to get into. Views disappear, as do triggers
or constraints. Better to 'truncate table' or 'delete from table'. I
know, I had a bear of a time with a nightly drop table;create table;copy
data in script that I forgot about and built a nice new app on views.
worked fine, came in the next morning, app was down...

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-06-11 16:14:26 Re: Majordomo aliases
Previous Message Vince Vielhaber 2002-06-11 16:10:38 Re: Majordomo aliases