Re: running script on server shutdown (TODO)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: running script on server shutdown (TODO)
Дата
Msg-id 23245.1134245204@sss.pgh.pa.us
обсуждение исходный текст
Ответ на running script on server shutdown (TODO)  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
Ответы Re: running script on server shutdown (TODO)  ("Andrew Dunstan" <andrew@dunslane.net>)
Список pgsql-patches
Volkan YAZICI <yazicivo@ttnet.net.tr> writes:
> I've written a small patch for following TODO item:
>   �Add GUC variable to run a command on database
>   panic or smart/fast/immediate shutdown.�

I'm not sure why this is in TODO; it's a stupid if not outright
dangerous idea.  Quite aside from any security considerations,
the time the script takes is taken away from the time available
to shut down the database before the kernel takes matters into
its own hands.

Besides, what is the point?  Whatever you need to do can be incorporated
into the initscript you use to start up or shut down the postmaster.
I see no need for this functionality to be inside the postmaster.

            regards, tom lane

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

Предыдущее
От: Volkan YAZICI
Дата:
Сообщение: running script on server shutdown (TODO)
Следующее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: running script on server shutdown (TODO)