pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: depesz@depesz.com
Cc: Menon, Deepak (Deepak) <menond@avaya.com>
Cc: Sankar, Uma (Uma) **CTR** <usankar@avaya.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: [External]Re: Postgres Crash Issue
Date: Tue, 15 Mar 2022 10:17:46 -0400
Message-ID: <316110.1647353866@sss.pgh.pa.us> (raw)
In-Reply-To: <20220315133213.GC10372@depesz.com>
References: <PH0PR15MB484717889C3D8F193D1CFA02AA109@PH0PR15MB4847.namprd15.prod.outlook.com>
	<20220315132747.GA10372@depesz.com>
	<CO1PR15MB5020FB13294468079C705A5ED8109@CO1PR15MB5020.namprd15.prod.outlook.com>
	<20220315133213.GC10372@depesz.com>

hubert depesz lubaczewski <depesz@depesz.com> writes:
> On Tue, Mar 15, 2022 at 01:30:25PM +0000, Menon, Deepak (Deepak) wrote:
>> Then what does this message mean ?
>> 
>> 2022-03-11 08:58:42.956 UTC [17115] DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. 

> When someone issues pg_ctl -m immediate stop (which is the immediate
> shutdown). pg basically shutd backends in their head. This, in turn,
> means that all other have to exit to avoid shared memory corruption.

FWIW, v14 and later produce more on-point error reporting in this
case.  The code path used to be the same as for a backend crash,
but now clients see something like

WARNING:  terminating connection due to immediate shutdown command
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

and the server log isn't spammed with copies of that, it just
looks like

2022-03-15 10:07:48.241 EDT [315456] LOG:  received immediate shutdown request
2022-03-15 10:07:48.244 EDT [315456] LOG:  database system is shut down

None of this gets us any closer to understanding where the signal
came from, unfortunately.

			regards, tom lane





view thread (8+ messages)  latest in thread

Message-ID: <316110.1647353866@sss.pgh.pa.us>
Permalink:  ../316110.1647353866@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/316110.1647353866@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, depesz@depesz.com, menond@avaya.com, usankar@avaya.com
  Subject: Re: [External]Re: Postgres Crash Issue
  In-Reply-To: <316110.1647353866@sss.pgh.pa.us>
  References: <PH0PR15MB484717889C3D8F193D1CFA02AA109@PH0PR15MB4847.namprd15.prod.outlook.com> <20220315132747.GA10372@depesz.com> <CO1PR15MB5020FB13294468079C705A5ED8109@CO1PR15MB5020.namprd15.prod.outlook.com> <20220315133213.GC10372@depesz.com> <316110.1647353866@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