Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster
Дата
Msg-id 22636.1392419221@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Ctrl+C from sh can shut down daemonized PostgreSQL cluster  (Kevin Grittner <kgrittn@ymail.com>)
Ответы Re: Ctrl+C from sh can shut down daemonized PostgreSQL cluster  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
Kevin Grittner <kgrittn@ymail.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



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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Ctrl+C from sh can shut down daemonized PostgreSQL cluster
Следующее
От: Greg Stark
Дата:
Сообщение: Re: New hook after raw parsing, before analyze