Re: connection timeouts and "killing" users

Поиск
Список
Период
Сортировка
Искать
От
Erik Jones
Тема
Re: connection timeouts and "killing" users
Дата
Msg-id
DCD35AE6-3A6C-4C22-BA7A-8107D016C880@engineyard.com
Ответ на
Список
Дерево обсуждения
connection timeouts and "killing" users "Gauthier, Dave" <dave.gauthier@intel.com>
Re: connection timeouts and "killing" users "Scott Marlowe" <scott.marlowe@gmail.com>
Re: connection timeouts and "killing" users "Gauthier, Dave" <dave.gauthier@intel.com>
Re: connection timeouts and "killing" users "Scott Marlowe" <scott.marlowe@gmail.com>
Re: connection timeouts and "killing" users "Gauthier, Dave" <dave.gauthier@intel.com>
Re: connection timeouts and "killing" users Erik Jones <ejones@engineyard.com>

On Sep 11, 2008, at 12:02 PM, Scott Marlowe wrote:

>> I don't think so.  What might work best is to have two pg_hba.conf
> files, and link to each one.  so one is pg_hba.conf.lockout and one is
> pg_hba.conf.normal, let's say.  lockout is set to only answer to the
> postgres user.  Switch the pg_hba.conf files, and do a pg_ctl
> stop;pg_ctl start or equivalent (/etc/init.d/postgresql stop / start)
> and then do your processing.  switch them back and restart pgsql
> again.

Note that if he's not manually killing off each of the client  
connections only the first restart is necessary (to kill off the child  
connections) as config reload will take care of pg_hba.conf changes.

Erik Jones, Database Administrator
Engine Yard
Support, Scalability, Reliability
(415) 963-4410 x 260
Location: US/Pacific
IRC: mage2k



В списке pgsql-general по дате отправления
От: Greg Smith
Дата:
От: William Garrison
Дата:
FAQ