Re: [HACKERS] Deadlock in ALTER SUBSCRIPTION REFRESH PUBLICATION - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] Deadlock in ALTER SUBSCRIPTION REFRESH PUBLICATION
Date
Msg-id 71582aab-85ba-36ec-dec0-bd30e6de2430@2ndquadrant.com
Whole thread Raw
In response to [HACKERS] Deadlock in ALTER SUBSCRIPTION REFRESH PUBLICATION  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-hackers
On 10/24/17 13:13, Konstantin Knizhnik wrote:
> The reason of this deadlock seems to be clear: ALTER SUBSCRIPTION starts transaction at one node and tries to create
slotat other node, which waiting for completion of all active transaction while building scnapshpot.
 
> Is there any way to avoid this deadlock?

I don't see a way to avoid it in general, unless we come up with a novel
way of creating replication slots.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Nico Williams
Date:
Subject: Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints
Next
From: Peter Geoghegan
Date:
Subject: Re: [HACKERS] MERGE SQL Statement for PG11