From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Arseny Sher <a(dot)sher(at)postgrespro(dot)ru>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: DROP SUBSCRIPTION hangs if sub is disabled in the same transaction |
Date: | 2017-09-14 19:08:20 |
Message-ID: | 014d09d5-834f-3c43-a82a-f5e2b863920c@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 9/12/17 15:51, Tom Lane wrote:
> ISTM the second of those (refuse to drop an in-use subscription) is
> by far the least surprising behavior. However, I wonder if there aren't
> race conditions involved here. What if we haven't yet committed a
> DROP SUBSCRIPTION, and some new worker starts up after we look for
> workers?
DROP SUBSCRIPTION takes an AccessExclusiveLock on pg_subscription to
prevent that.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Korotkov | 2017-09-14 19:10:49 | Re: Pluggable storage |
Previous Message | Peter Eisentraut | 2017-09-14 19:06:24 | Re: DROP SUBSCRIPTION hangs if sub is disabled in the same transaction |