Re: Migrating tables to new schema with minimal downtime

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: Migrating tables to new schema with minimal downtime
Дата
Msg-id ZAcnPjgwX4zF5QXf@depesz.com
обсуждение исходный текст
Ответ на Migrating tables to new schema with minimal downtime  (Joseph Hammerman <joe.hammerman@datadoghq.com>)
Список pgsql-admin
On Mon, Mar 06, 2023 at 01:00:15PM -0800, Joseph Hammerman wrote:
> Would it be data safe if I took an ACCESS EXCLUSIVE lock on the table?

alter table gets ACCESS EXCLUSIVE lock on its own.

You can test it trivially in psql on some side table.

Best regards,

depesz




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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Migrating tables to new schema with minimal downtime
Следующее
От: Erik Serrano
Дата:
Сообщение: Replication between two different versions