From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-general@postgresql.org
Subject: Re: circular wait not triggering deadlock ?
Date: Thu, 08 Mar 2018 15:05:36 -0500
Message-ID: <25504.1520539536@sss.pgh.pa.us> (raw)
In-Reply-To: <20180308194559.GK24441@telsasoft.com>
References: <20180308182629.GJ24441@telsasoft.com>
<21765.1520535426@sss.pgh.pa.us>
<20180308194559.GK24441@telsasoft.com>
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.
regards, tom lane
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, pryzby@telsasoft.com
Subject: Re: circular wait not triggering deadlock ?
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>
* 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