Re: LOCK DATABASE

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: LOCK DATABASE
Дата
Msg-id 1305781803-sup-7833@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: LOCK DATABASE  (David Christensen <david@endpoint.com>)
Список pgsql-hackers
Excerpts from David Christensen's message of jue may 19 00:55:36 -0400 2011:

> How would this differ from just UPDATE pg_database SET datallowconn = FALSE for the databases in question?

Several ways actually.  First, it is automatically gone when the locking
session disconnects (so it clean ups after itself).  Second, it doesn't
require manually updating the catalogs, which is frowned upon (with good
reason).  Third, the database owner could do it, not just superuser.


-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: David Christensen
Дата:
Сообщение: Re: LOCK DATABASE
Следующее
От: Andres Freund
Дата:
Сообщение: Re: LOCK DATABASE