Re: lock a database from new connections, without modifying pg_hba.conf

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lock a database from new connections, without modifying pg_hba.conf
Дата
Msg-id 20570.1147984074@sss.pgh.pa.us
обсуждение исходный текст
Ответ на lock a database from new connections, without modifying pg_hba.conf  ("Marc G. Fournier" <scrappy@postgresql.org>)
Ответы Re: lock a database from new connections, without modifying pg_hba.conf  (adey <adey11@gmail.com>)
Список pgsql-admin
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> Is that possible?  I've checked the docs for 8.1, and am not finding
> anything, nor anything in contrib ...

> the best I've been able to think of so far is to modify pg_hba.conf to not
> allow new connections for the duration of the operations I need to perform
> (drop and create a database) ...

Not sure I understand what you need.  DROP DATABASE already locks out
new connections.

            regards, tom lane

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

Предыдущее
От: "ashok@kalculate.com"
Дата:
Сообщение: find out all users under specific user
Следующее
От: Mario Splivalo
Дата:
Сообщение: Reclaiming used disk space