Re: [Patch] Create a new session in postmaster by calling setsid() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [Patch] Create a new session in postmaster by calling setsid()
Date
Msg-id 16816.1546028014@sss.pgh.pa.us
Whole thread Raw
In response to Re: [Patch] Create a new session in postmaster by calling setsid()  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: [Patch] Create a new session in postmaster by calling setsid()  (Heikki Linnakangas <hlinnaka@iki.fi>)
List 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 by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Prepare Transaction support for ON COMMIT DROP temporary tables
Next
From: Mitar
Date:
Subject: Regression tests using multiple sessions