Re: Superuser connect during smart shutdown

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Superuser connect during smart shutdown
Дата
Msg-id 544089F5.4090204@2ndquadrant.com
обсуждение исходный текст
Ответ на Superuser connect during smart shutdown  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
On 10/17/2014 03:59 AM, Jim Nasby wrote:
> Over in the "Log notice that checkpoint is to be written on shutdown"
> thread...
> 
> On 10/16/14, 2:31 PM, Michael Banck wrote:
>> There were some comments that this might not actually be the case and/or
>> that the postmaster was simply waiting for clients to disconnect due to
>> smart shutdown being invoked.
> 
> Something else mentioned was that once you start a smart shutdown you
> have no good way (other than limited ps output) to see what the shutdown
> is waiting on. I'd like to have some way to get back into the database
> to see what's going on. Perhaps we could allow superusers to connect
> while waiting for shutdown. A big warning that we're in shutdown would
> be nice, and maybe it would make sense to further restrict this to only
> local connections.

You'd also want to flag this connection so it's ignored by the smart
shutdown check, allowing the server to shut down even if it's active.

That'd be a pretty useful thing to have anyway, so monitoring tools,
long-running reports that can be restarted ,etc can mark their
connections as ignored for the purpose of smart shutdown.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: WIP: dynahash replacement for buffer table
Следующее
От: Craig Ringer
Дата:
Сообщение: [PATCH] HINT: pg_hba.conf changed since last config reload