- Архив списков рассылки pgsql-general

Поиск
Список
Период
Сортировка
От Vincenzo Romano
Тема
Дата
Msg-id CAHjZ2x7AMebB4dVoW9FWRb3NQde-_zwbP5eAphJ=-3ZAD8+VMQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: transactional swap of tables  (Kevin Grittner <kgrittn@ymail.com>)
Re:  (Luca Ferrari <fluca1978@infinito.it>)
Список pgsql-general
Hi all
I'm making some experiments with table archiving and I'd like to
"replace" a full table F with an empty one E.
In order to do this I see only one way:

ALTER TABLE F RENAME TO T;
ALTER TABLE E RENAME TO F;
ALTER TABLE T RENAME TO E; -- optional

This implies there's a moment when the full table doesn't exist.
Would a transaction enclosure ensure that the table F will be always
available to all clients?
Thanks.

--
Vincenzo Romano - NotOrAnd.IT
Information Technologies
--
NON QVIETIS MARIBVS NAVTA PERITVS


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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: How can you get "WAL segment has already been removed" when doing synchronous replication ?!
Следующее
От: Clodoaldo Neto
Дата:
Сообщение: Changing the function used in an index.