Re: v10 pg_ctl compatibility

From: Andres Freund <andres(at)anarazel(dot)de>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: v10 pg_ctl compatibility
Date: 2017-09-26 22:36:53
Message-ID: 20170926223653.eozpatj3pokil532@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2017-09-26 15:15:39 -0700, Jeff Janes wrote:
> On Tue, Sep 26, 2017 at 1:10 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> > Jeff Janes <jeff(dot)janes(at)gmail(dot)com> writes:
> > > To add insult to injury, when v10 pg_ctl does restart a pre-10 server and
> > > it sits there for a long time waiting for it to start up even though it
> > has
> > > already started up, if I hit ctrl-C because I assume something is
> > horribly
> > > wrong, it then goes ahead and kills the successfully started-and-running
> > > server.
> >
> > Really? The server should have detached itself from your terminal
> > group long before that. What platform is this?
> >
>
>
> CentOS release 6.9 (Final)
>
> The sever log file (9.6) says:
>
>
> 64926 2017-09-26 13:56:38.284 PDT LOG: database system was shut down
> at 2017-09-26 13:56:37 PDT
> 64926 2017-09-26 13:56:38.299 PDT LOG: MultiXact member wraparound
> protections are now enabled
> 64930 2017-09-26 13:56:38.311 PDT LOG: autovacuum launcher started
> 64924 2017-09-26 13:56:38.313 PDT LOG: database system is ready to
> accept connections
> ... hit ctrl-C
> 64924 2017-09-26 13:56:47.237 PDT LOG: received fast shutdown request
> 64924 2017-09-26 13:56:47.237 PDT LOG: aborting any active transactions
> 64930 2017-09-26 13:56:47.244 PDT LOG: autovacuum launcher shutting
> down
> 64927 2017-09-26 13:56:47.261 PDT LOG: shutting down
> ...

It's reproducible here. Postmaster never calls setsid() for itself, nor
does pg_ctl for it, therefore ctrl-c's SIGTERM to pg_ctl also go to its
children, namely postmaster.

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2017-09-26 22:39:17 Re: md5 still listed as an option in pg_hba.conf.sample
Previous Message Euler Taveira 2017-09-26 22:25:25 Re: Logical Replication - test_decoding - unchanged-toast-datum