Re: Full vacuuming of BIG tables takes too long - Mailing list pgsql-admin

From Steve Crawford
Subject Re: Full vacuuming of BIG tables takes too long
Date
Msg-id 200305220811.59291.scrawford@pinpointresearch.com
Whole thread Raw
In response to Re: Full vacuuming of BIG tables takes too long  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-admin
You are likely to run into unhappy situations if you use views, rules, etc.
Depending on the version of PG it will either refuse to drop the table if
there are dependencies or it will drop it but the views won't be "connected"
to the new version of t1 after you run your opreation.

Cheers,
Steve

On Thursday 22 May 2003 07:01, Robert Treat wrote:
> Is it possible for you do Begin;  Create Table t2 As Select * From t1;
> Drop Table t1 ; Alter table t2 Rename To t1; Commit;
>
> Note you might want to lock t1 from writers, but people could still
> select from it while you making the switch.
>
> Robert Treat


pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Full vacuuming of BIG tables takes too long
Next
From: Jeff Boes
Date:
Subject: Backend exited with signal 14?