From: Tom Lane <tgl@sss.pgh.pa.us>
To: Yi Sun <yinan81@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: received immediate shutdown request caused cluster failover
Date: Fri, 20 Nov 2020 01:17:58 -0500
Message-ID: <1276662.1605853078@sss.pgh.pa.us> (raw)
In-Reply-To: <CABWY_HCqpj26Svco_AnveXXJorbHcyCok2QQP4arpc2-RyJN2Q@mail.gmail.com>
References: <CABWY_HBb3iRxYdLD2zEeGv4RMKBMP1m=3Yz8qFcKcvm93thScg@mail.gmail.com>
<CABWY_HCqpj26Svco_AnveXXJorbHcyCok2QQP4arpc2-RyJN2Q@mail.gmail.com>
Yi Sun <yinan81@gmail.com> writes:
> Besides command run(like pg_ctl) can cause "received immediate shutdown
> request" any other reason can cause this please?
That message indicates that something sent the postmaster process a
SIGQUIT signal (which is all that "pg_ctl stop -m immediate" does).
There's no speculation to that: a look at postmaster.c will convince
you that there is no other way to reach that message. So you need
to be looking for things that would be sending SIGQUIT unexpectedly.
I don't know much about Patroni, but maybe something in that
environment thinks that SIGQUIT'ing random processes is a good
thing to do.
regards, tom lane
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, yinan81@gmail.com
Subject: Re: received immediate shutdown request caused cluster failover
In-Reply-To: <1276662.1605853078@sss.pgh.pa.us>
References: <CABWY_HBb3iRxYdLD2zEeGv4RMKBMP1m=3Yz8qFcKcvm93thScg@mail.gmail.com> <CABWY_HCqpj26Svco_AnveXXJorbHcyCok2QQP4arpc2-RyJN2Q@mail.gmail.com> <1276662.1605853078@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