Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvTHH-0006NO-4T for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Sep 2017 19:06:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dvTHG-0005dU-Ni for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Sep 2017 19:06:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dvTHF-0005c4-2k for pgsql-hackers@postgresql.org; Fri, 22 Sep 2017 19:06:17 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dvTHC-0001KY-Aa for pgsql-hackers@postgresql.org; Fri, 22 Sep 2017 19:06:15 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 499A42144E; Fri, 22 Sep 2017 15:06:12 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Fri, 22 Sep 2017 15:06:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=ry3qZ938Bsym71Bj9cBeYHXFOYqRmASkXbwBnAxxtHg=; b=n3yrvUtb 5WPYDant+pAEq/IuKJls73pE9XvhgQbURd4fQwdf8mh7LM69vqUIe0DGo/KdaHIg DQIQpYu01/ACETQMdxdYPK7cQ9WkwkivdrIg+xs3XpFp94e9rWyL/8dPfdqN9wsv U0QGwPCdHQsSEHXfGH3+inGCetQZ93ttAZDL8AhHAry1xEolakteueKXu3IK1Njy De4D36kd3WVY3jukUPLudxl74ZijqFTH7/2ki2suaYYfJ2AMaqOzvAY/Mg/YyNpc cbV3P9kLpaALJV37ujtg/hRJsrOi6fVk7W48e7XJpJ0RRvzpXA/rssa5/W8AwuBy ciC0rZm9O7Yuew== X-ME-Sender: X-Sasl-enc: 701UIETpzmIAEczKi3Ger+O1ST1Rxc0qZFeaHtHGXGEL 1506107172 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id EA5D124640; Fri, 22 Sep 2017 15:06:11 -0400 (EDT) Subject: Re: DROP SUBSCRIPTION hangs if sub is disabled in the same transaction To: Masahiko Sawada References: <87mv6av84w.fsf@ars-thinkpad> <48b251c6-0652-c131-975a-835d8cdb003c@2ndquadrant.com> <10937.1505245906@sss.pgh.pa.us> <87shfqsw22.fsf@ars-thinkpad> <87o9qd6p13.fsf@ars-thinkpad> <4a3d7e55-1f57-f501-d5ac-2adff9256878@2ndquadrant.com> <87mv5v50gt.fsf@ars-thinkpad> Cc: Arseny Sher , Tom Lane , PostgreSQL-development From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Fri, 22 Sep 2017 15:06:11 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 9/21/17 04:43, Masahiko Sawada wrote: >> Once we got this patch, DROP SUBSCRIPTION is not transactional either >> if dropping a replication slot or if the subscription got disabled in >> a transaction block. But we disallow to do DROP SUBSCRIPTION in a >> transaction block only in the former case. In the latter case, we >> adopted such non-transactional behaviour. Since these behaviours would >> be complex for users I attached the documentation patch explaining it. >> > Hmm, isn't there necessary to care and mention about this kind of > inconsistent behavior in docs? I have added documentation that certain forms of CREATE/DROP SUBSCRIPTION cannot be run inside a transaction block, which we have done for other such commands. I don't think we need to go into further detail. We don't guarantee continuous connections. If a worker is stopped and restarted in the background as an implementation detail, then the user is not impacted. -- 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