Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsZUh-0002TB-5n for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Sep 2017 19:08:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dsZUg-0000zk-Jr for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Sep 2017 19:08:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsZT7-0006H8-Va for pgsql-hackers@postgresql.org; Thu, 14 Sep 2017 19:06:34 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsZT0-0007H8-UD for pgsql-hackers@postgresql.org; Thu, 14 Sep 2017 19:06:33 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5FFEF20CBA; Thu, 14 Sep 2017 15:06:25 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Thu, 14 Sep 2017 15:06:25 -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=t/VqEB2vmGK9NF/hHsMUWa2PX43hkoLO/3w68D9AmKc=; b=rfNBj7N3 ayCTsJyi8EpWqLw9mNy27b25yCmLeZEcImkzqTb6zQbHZDpOnwzajYqSG8y+L/Vx Og4LFpoQYHsZCpshByIAWaSLXLhhjFBb/T+IR3xPDjbeDGDOnx8dNCUSscPOZ6R7 HBEtcWgz3p6ZqJuxBdKWktHYedK+X5PS11giYkE6IRSrNJrWvIMx22tpe44X33te il4e2K0eFtBWJqNZl9v8HUk2BZpe9RRUoUnVWAm40G83lIm+3BgSzciabwkss2wW MT9hLnpqqEJC0hqyEi92VCseASbJolda7A+2m++VQglSdBHsqT+0UwCxagrRuisE P9m8xSjZkhaPTg== X-ME-Sender: X-Sasl-enc: fsZvWCzjt1tsYRkgiD7Hd0vL4lyyoLf/su9hirOao943 1505415985 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 143297E183; Thu, 14 Sep 2017 15:06:25 -0400 (EDT) Subject: Re: DROP SUBSCRIPTION hangs if sub is disabled in the same transaction To: Arseny Sher , Tom Lane References: <87mv6av84w.fsf@ars-thinkpad> <48b251c6-0652-c131-975a-835d8cdb003c@2ndquadrant.com> <10937.1505245906@sss.pgh.pa.us> <87shfqsw22.fsf@ars-thinkpad> Cc: pgsql-hackers@postgresql.org, Masahiko Sawada From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Thu, 14 Sep 2017 15:06:24 -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: <87shfqsw22.fsf@ars-thinkpad> 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/13/17 07:00, Arseny Sher wrote: > On the other hand, forbidding to execute disable sub and drop sub in one > transaction makes it impossible e.g. to drop subscription in trigger Disabling a subscription before dropping it isn't very useful, is it? So I'm not sure this is an important use case we need to optimize. We just need to prevent it from hanging. -- 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