Re: Improve shutdown during online backup

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Improve shutdown during online backup
Дата
Msg-id 87mynuvtd9.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: [PATCHES] Improve shutdown during online backup  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:

> Personally, I think "smart" shutdown could be even smarter. It should
> kick off unwanted sessions, such as an idle pgAdmin session - maybe a
> rule like "anything that has been idle for >30 seconds".

That's not a bad idea in itself but I don't think it's something the server
should be in the business of doing. One big reason is that the server
shouldn't be imposing arbitrary policy. That should be something the person
running the shutdown is in control over.

What you could do is have a separate program (I would write a client but a
server-side function would work too) to kick off users based on various
criteria you can specify.

Then you can put in your backup scripts two commands, one to kick off idle
users and then do a smart shutdown.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's PostGIS support!

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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: Collation at database level
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: pgwin32_safestat weirdness