From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: djk447@gmail.com
Subject: BUG #15036: Un-killable queries Hanging in BgWorkerShutdown
Date: Mon, 29 Jan 2018 16:48:53 +0000
Message-ID: <151724453314.1238.409882538067070269@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15036
Logged by: David Kohn
Email address: djk447@gmail.com
PostgreSQL version: 10.1
Operating system: Ubuntu 16.04
Description:
I have been experiencing a consistent problem with queries that I cannot
kill with pg_cancel_backend or pg_terminate_backend. In many cases they have
been running for days and are in a transaction so it eventually causes
rather large bloat etc problems. All the backends are in the IPC wait_event.
The backends appear to either be a main client_backend, in which case
wait_event_type fields in pg_stat_activity say BgWorkerShutdown and for the
background workers I see two (though I'm not sure that that this is all of
them): BtreePage and MessageQueuePutMessage. I'm quite sure the clients for
these are dead, they had statement timeouts set to an hour at most, they
might have died sooner than that of other causes. I assume this is a bug and
I should be reporting it here, but if I'm putting it on the wrong list let
me know and I'll move it!
Best,
David
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-bugs@postgresql.org
Cc: noreply@postgresql.org, djk447@gmail.com
Subject: Re: BUG #15036: Un-killable queries Hanging in BgWorkerShutdown
In-Reply-To: <151724453314.1238.409882538067070269@wrigleys.postgresql.org>
References: <151724453314.1238.409882538067070269@wrigleys.postgresql.org>
* 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