Re: [Patch] Create a new session in postmaster by calling setsid()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [Patch] Create a new session in postmaster by calling setsid()
Дата
Msg-id 16816.1546028014@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [Patch] Create a new session in postmaster by calling setsid()  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: [Patch] Create a new session in postmaster by calling setsid()  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.fi> writes:
> We talked about adding a flag to postmaster, to tell it to call 
> setsid(). But I'm not sure what would be the appropriate time to do it. 

Yeah, there's no ideal time in the postmaster.

> Another idea would be to call setsid() in pg_ctl, after forking 
> postmaster, like in Paul's original patch. That solves 1. and 2. To 
> still do 3., add a signal handler for SIGINT in pg_ctl, which forwards 
> the SIGINT to the postmaster process. Thoughts on that?

That seems like a nice idea.

            regards, tom lane


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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Prepare Transaction support for ON COMMIT DROP temporary tables
Следующее
От: Mitar
Дата:
Сообщение: Regression tests using multiple sessions