pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin King <kingpin867@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: walreceiver termination
Date: Thu, 23 Apr 2020 13:47:48 -0400
Message-ID: <18350.1587664068@sss.pgh.pa.us> (raw)
In-Reply-To: <CAE39h21Qbw65hf48BEAMjLriNA4JcrFvKJi0srDRNR6YMZXfXw@mail.gmail.com>
References: <CAE39h21Qbw65hf48BEAMjLriNA4JcrFvKJi0srDRNR6YMZXfXw@mail.gmail.com>

Justin King <kingpin867@gmail.com> writes:
> We've seen unexpected termination of the WAL receiver process.  This
> stops streaming replication, but the replica stays available --
> restarting the server resumes streaming replication where it left off.
> We've seen this across nearly every recent version of PG, (9.4, 9.5,
> 11.x, 12.x) -- anything omitted is one we haven't used.

> I don't have an explanation for the cause, but I was able to set
> logging to "debug5" and run an strace of the walrecevier PID when it
> eventually happened.  It appears as if the SIGTERM is coming from the
> "postgres: startup" process.

The startup process intentionally SIGTERMs the walreceiver under
various circumstances, so I'm not sure that there's any surprise
here.  Have you checked the postmaster log?

			regards, tom lane





view thread (8+ messages)  latest in thread

Message-ID: <18350.1587664068@sss.pgh.pa.us>
Permalink:  ../18350.1587664068@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18350.1587664068@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kingpin867@gmail.com
  Subject: Re: walreceiver termination
  In-Reply-To: <18350.1587664068@sss.pgh.pa.us>
  References: <CAE39h21Qbw65hf48BEAMjLriNA4JcrFvKJi0srDRNR6YMZXfXw@mail.gmail.com> <18350.1587664068@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox