pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Andres Freund <andres@anarazel.de>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Jeremy Finzel <finzelj@gmail.com>
Subject: Re: Deadlock in multiple CIC.
Date: Wed, 3 Jan 2018 11:28:02 -0300
Message-ID: <20180103142802.22hisip5seu7dorg@alvherre.pgsql> (raw)
In-Reply-To: <20171229192419.xocwuzajue34jtto@alap3.anarazel.de>

Andres Freund wrote:
> On 2017-12-26 13:31:03 -0300, Alvaro Herrera wrote:
> > It's strange that this has gone undetected for so long.  I wonder if
> > there's an interaction with logical decoding and its historical
> > snapshot stuff here.
> 
> I can't see how - did you have a vague theory you could share?

Not really.  I was just looking at the snapmgr.c code and thinking
whether there was a chance that it was the historic snapshot could be
involved in waits.  But then, as presented the failure does not use
logical decoding, so even if there's a bug there (for which I have no
evidence) it would have to be a separate one.

More generally I was wondering if there was anyplace else that would
keep a catalog snapshot registered for a long time and then go to sleep. 
Looked for it desultorily, came up with nothing.

Thanks,

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (20+ messages)  latest in thread

Message-ID: <20180103142802.22hisip5seu7dorg@alvherre.pgsql>
Permalink:  ../20180103142802.22hisip5seu7dorg@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180103142802.22hisip5seu7dorg@alvherre.pgsql

 · 

reply

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-hackers@postgresql.org
  Cc: alvherre@alvh.no-ip.org, andres@anarazel.de, jeff.janes@gmail.com, finzelj@gmail.com
  Subject: Re: Deadlock in multiple CIC.
  In-Reply-To: <20180103142802.22hisip5seu7dorg@alvherre.pgsql>
  References: <20171229192419.xocwuzajue34jtto@alap3.anarazel.de> <20180103142802.22hisip5seu7dorg@alvherre.pgsql>

* 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