Re: pg_restore with connection limit 0

Поиск
Список
Период
Сортировка
От Олег Самойлов
Тема Re: pg_restore with connection limit 0
Дата
Msg-id B29C01A8-E264-4F07-BE5E-9E5CEA178546@ya.ru
обсуждение исходный текст
Ответ на Re: pg_restore with connection limit 0  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
> 27 нояб. 2019 г., в 18:14, Adrian Klaver <adrian.klaver@aklaver.com> написал(а):

> Why not use pg_hba.conf to allow only connection from superuser for duration?

We considered this, but we don't have direct access to the linux server, only sql connection. The application run in a
kubernetes,etc. 

The most simple approach to block concurrent access to the database, may be, is run all pg_restore inside single
transaction.But this is impossible with --create option, but --create option is the only way to restore database
settings.And this is impossible for us, because we need pg_restore in 3 stages. 

It is inconvenient that the pg_restore has functionality for 3 stages, but don't has functionality to block database
fortime of this 3 stages. 


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: pg_restore with connection limit 0
Следующее
От: Thomas Carter
Дата:
Сообщение: Install different directory issues