Re: [HACKERS] Why does logical replication launcher exit with exitcode 1? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [HACKERS] Why does logical replication launcher exit with exitcode 1?
Date
Msg-id CA+TgmoZUVOdjrhU60BQGg93OOXBfyEC3YM5Rc8OuyvDRAJfKQg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Why does logical replication launcher exit with exitcode 1?  (Andres Freund <andres@anarazel.de>)
Responses Re: [HACKERS] Why does logical replication launcher exit with exitcode 1?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Tue, Aug 1, 2017 at 7:03 PM, Andres Freund <andres@anarazel.de> wrote:
> On 2017-08-02 10:58:32 +1200, Thomas Munro wrote:
>> When I shut down a cluster that isn't using logical replication, it
>> always logs a line like the following.  So do the build farm members I
>> looked at.  I didn't see anything about this in the open items list --
>> isn't it a bug?
>>
>> 2017-08-02 10:39:25.007 NZST [34781] LOG:  worker process: logical
>> replication launcher (PID 34788) exited with exit code 1
>
> Exit code 0 signals that a worker should be restarted. Therefore
> graceful exit can't really use that.  I think a) we really need to
> improve bgworker infrastructure around that b) shows the limit of using
> bgworkers for this kinda thing - we should probably have a more bgworker
> like infrastructure for internal workers.

You might've missed commit be7558162acc5578d0b2cf0c8d4c76b6076ce352.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: [HACKERS] Partitioning vs ON CONFLICT
Next
From: Andres Freund
Date:
Subject: Re: [HACKERS] Why does logical replication launcher exit with exitcode 1?