Re: postgres process got stuck in "notify interrupt waiting" status - Mailing list pgsql-general

From Tom Lane
Subject Re: postgres process got stuck in "notify interrupt waiting" status
Date
Msg-id 17560.1346859225@sss.pgh.pa.us
Whole thread Raw
In response to Re: postgres process got stuck in "notify interrupt waiting" status  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: postgres process got stuck in "notify interrupt waiting" status
List pgsql-general
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Aleksey Tsalolikhin <atsaloli.tech@gmail.com> wrote:
>> Why will it kill all your other sessions too?  Isn't there a
>> separate backend process for each session?

> When stopped that abruptly, the process has no chance to clean up
> its pending state in shared memory.  A fresh copy of shared memory
> is needed, so it is necessary to effectively do an immediate restart
> on the whole PostgreSQL instance.

Right.  On seeing one child die unexpectedly, the postmaster forcibly
SIGQUITs all its other children and initiates a crash recovery sequence.
The reason for this is exactly that we can't trust the contents of
shared memory anymore.  An example is that the dying backend may have
held some critical lock, which there is no way to release, so that every
other session will shortly be stuck anyway.

            regards, tom lane


pgsql-general by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: postgres process got stuck in "notify interrupt waiting" status
Next
From: jam3
Date:
Subject: Where is the char and varchar length in pg_catalog for function input variables