From: Justin Pryzby <pryzby@telsasoft.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: circular wait not triggering deadlock ?
Date: Thu, 8 Mar 2018 14:13:01 -0600
Message-ID: <20180308201301.GN24441@telsasoft.com> (raw)
In-Reply-To: <25504.1520539536@sss.pgh.pa.us>
References: <20180308182629.GJ24441@telsasoft.com>
<21765.1520535426@sss.pgh.pa.us>
<20180308194559.GK24441@telsasoft.com>
<25504.1520539536@sss.pgh.pa.us>
On Thu, Mar 08, 2018 at 03:05:36PM -0500, Tom Lane wrote:
> Justin Pryzby <pryzby@telsasoft.com> writes:
> > On Thu, Mar 08, 2018 at 01:57:06PM -0500, Tom Lane wrote:
> >> PID 20488 is evidently waiting for PID 6471 to finish its transaction.
> >> What's that one doing?
>
> > Um, I thought I had kept track of all two pids but looks not..
> > query | SELECT pg_export_snapshot();
>
> pg_export_snapshot doesn't block for other transactions, though.
> Further down, you have output that confirms that:
>
> > 6471 | idle in transaction | psql | SELECT pg_export_snapshot();
>
> That SELECT is the most recently completed command, not the current one.
> So now the question is what the connected application is waiting for
> before committing.
I believe it does an idle loop around sleep(1), until all the pg_dump
--snapshot children are done.
Justin
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: pryzby@telsasoft.com, tgl@sss.pgh.pa.us
Subject: Re: circular wait not triggering deadlock ?
In-Reply-To: <20180308201301.GN24441@telsasoft.com>
References: <20180308182629.GJ24441@telsasoft.com> <21765.1520535426@sss.pgh.pa.us> <20180308194559.GK24441@telsasoft.com> <25504.1520539536@sss.pgh.pa.us> <20180308201301.GN24441@telsasoft.com>
* 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