pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Arseny Sher <a.sher@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: DROP SUBSCRIPTION hangs if sub is disabled in the same transaction
Date: Wed, 13 Sep 2017 21:33:09 -0400
Message-ID: <fcd89ae4-706c-65d5-b803-c84d0498b98b@2ndquadrant.com> (raw)
In-Reply-To: <20170913135615.sxhwjp7bbo7bnq5g@alvherre.pgsql>
References: <20170913135615.sxhwjp7bbo7bnq5g@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 9/13/17 09:56, Alvaro Herrera wrote:
> Tom Lane wrote:
>> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> 
>>> - Disallow DROP SUBSCRIPTION in a transaction under certain
>>> circumstances, for example if a transaction has previously manipulated
>>> the same subscription.
> 
>> ISTM the second of those (refuse to drop an in-use subscription) is
>> by far the least surprising behavior.
> 
> +1 for that option.  IIRC this has precedent for other object types such
> as tables, where we refuse some action if we have already operated on
> the table in the same transaction.

What are some examples of such behavior?

-- 
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



view thread (32+ messages)  latest in thread

Message-ID: <fcd89ae4-706c-65d5-b803-c84d0498b98b@2ndquadrant.com>
Permalink:  ../fcd89ae4-706c-65d5-b803-c84d0498b98b@2ndquadrant.com/
Also on:    postgresql.org/message-id/fcd89ae4-706c-65d5-b803-c84d0498b98b@2ndquadrant.com

 · 

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: peter.eisentraut@2ndquadrant.com, alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, a.sher@postgrespro.ru
  Subject: Re: DROP SUBSCRIPTION hangs if sub is disabled in the same transaction
  In-Reply-To: <fcd89ae4-706c-65d5-b803-c84d0498b98b@2ndquadrant.com>
  References: <20170913135615.sxhwjp7bbo7bnq5g@alvherre.pgsql> <fcd89ae4-706c-65d5-b803-c84d0498b98b@2ndquadrant.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