Re: ALTER TABLE ... REPLACE WITH

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: ALTER TABLE ... REPLACE WITH
Дата
Msg-id AANLkTinTR84DrhjMGqm=ffstiJ=yO7hYj0KZrOfgwFrx@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ALTER TABLE ... REPLACE WITH  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: ALTER TABLE ... REPLACE WITH  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
On Tue, Dec 14, 2010 at 1:54 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> BEGIN;
> TRUNCATE TABLE;
> ... load new data ...
> COMMIT;

Because then you have to take an AccessExclusiveLock on the target
table, of course.

If we had some kind of TRUNCATE CONCURRENTLY, I think that'd address a
large portion of the use case for the proposed feature.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: ALTER TABLE ... REPLACE WITH
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: hstores in pl/python