Re: [Patch] Create a new session in postmaster by calling setsid()
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Michael Paquier <michael@paquier.xyz>, Andres Freund <andres@anarazel.de>,
Paul Guo <pguo@pivotal.io>,
Andrew Gierth <andrew@tao11.riddles.org.uk>,
pgsql-hackers@postgresql.org
Date: 2018-12-28T20:13:34Z
Lists: 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
Commits
-
Detach postmaster process from pg_ctl's session at server startup.
- bb24439cefea 12.0 landed
-
Remove silent_mode. You get the same functionality with "pg_ctl -l
- f7ea6beaf4ca 9.2.0 cited