Re: Full vacuuming of BIG tables takes too long

Поиск
Список
Период
Сортировка
От Steve Crawford
Тема Re: Full vacuuming of BIG tables takes too long
Дата
Msg-id 200305220811.59291.scrawford@pinpointresearch.com
обсуждение исходный текст
Ответ на Re: Full vacuuming of BIG tables takes too long  (Robert Treat <xzilla@users.sourceforge.net>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Full vacuuming of BIG tables takes too long
Следующее
От: Jeff Boes
Дата:
Сообщение: Backend exited with signal 14?