Re: Preventing access temporarily.

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Preventing access temporarily.
Дата
Msg-id CAOR=d=0dxXdBye-_WBkuomH8379MMWHLz9MQr1QsJoq3ELCOQQ@mail.gmail.com
обсуждение исходный текст
Ответ на Preventing access temporarily.  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Ответы Re: Preventing access temporarily.  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
On Thu, Jan 26, 2012 at 3:05 PM, Gauthier, Dave <dave.gauthier@intel.com> wrote:
> PG V9.0.1 on Linux
>
>
>
> I want to temporarily prevent users from connecting to a DB, let the
> existing connections finish, <do some work>, re-enable connections.
>
> What's the best way to do that?

Edit pg_hba.conf to reject all connections and reload.  current
connections will stay connected, new ones will be refused.  use
pg_stat_activity to monitor connections til they're all gone / idle.

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

Предыдущее
От: Rodrigo E. De León Plicet
Дата:
Сообщение: Don't Thread On Me (PostgreSQL related)
Следующее
От: "Gauthier, Dave"
Дата:
Сообщение: Re: Preventing access temporarily.