From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Kevin Grittner <kgrittn(at)ymail(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster |
Date: | 2014-02-14 23:07:01 |
Message-ID: | 22636.1392419221@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Kevin Grittner <kgrittn(at)ymail(dot)com> writes:
> What is surprising is that the postmaster doesn't set up its own
> process group when it is running as a daemon. We probably don't
> want to change that when postgres is run directly from a command
> line for development or diagnostic purposes, but Noah suggested
> perhaps we should add a --daemonize option which pg_ctl should use
> when launching the postmaster, which would cause it to create its
> own session group.
We intentionally removed the daemonization support that used to
be there; see commit f7ea6beaf4ca02b8e6dc576255e35a5b86035cb9.
One of the things it did was exactly this. I'm a bit disinclined
to put that back.
If this is, as it sounds to be, a Solaris shell bug, doesn't it
affect other daemons too?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2014-02-14 23:46:07 | Re: New hook after raw parsing, before analyze |
Previous Message | Kevin Grittner | 2014-02-14 22:57:37 | Ctrl+C from sh can shut down daemonized PostgreSQL cluster |