From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Pacheco <dap@joyent.com>
Cc: pgsql-general@postgresql.org
Subject: Re: postmaster deadlock while logging after syslogger exited
Date: Mon, 06 Nov 2017 15:35:03 -0500
Message-ID: <19239.1510000503@sss.pgh.pa.us> (raw)
In-Reply-To: <CACukRjOaR2_DY2tLzPe-ZJUActf8RcZ=r1HimQxFgYBy++aR8Q@mail.gmail.com>
References: <CACukRjOaR2_DY2tLzPe-ZJUActf8RcZ=r1HimQxFgYBy++aR8Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
David Pacheco <dap@joyent.com> writes:
> I ran into what appears to be a deadlock in the logging subsystem. It
> looks like what happened was that the syslogger process exited because it
> ran out of memory. But before the postmaster got a chance to handle the
> SIGCLD to restart it, it handled a SIGUSR1 to start an autovacuum worker.
> That also failed, and the postmaster went to log a message about it, but
> it's blocked on the pipe that's normally connected to the syslogger,
> presumably because the pipe is full because the syslogger is gone and
> hasn't read from it.
Ugh.
> ... that process appears to have exited due to a fatal error
> (out of memory). (I know it exited because the process still exists in the
> kernel -- it hasn't been reaped yet -- and I think it ran out of memory
> based on a log message I found from around the time when the process
> exited.)
Could we see the exact log message(s) involved? It's pretty hard to
believe that the logger would have consumed much memory.
regards, tom lane
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
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, dap@joyent.com
Subject: Re: postmaster deadlock while logging after syslogger exited
In-Reply-To: <19239.1510000503@sss.pgh.pa.us>
References: <CACukRjOaR2_DY2tLzPe-ZJUActf8RcZ=r1HimQxFgYBy++aR8Q@mail.gmail.com> <19239.1510000503@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