Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpooe-00013Q-9G for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Sep 2017 04:53:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dpood-0001sJ-Ng for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Sep 2017 04:53:23 +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 1dpood-0001s9-0t for pgsql-hackers@postgresql.org; Thu, 07 Sep 2017 04:53:23 +0000 Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dpooZ-0004Gq-0E for pgsql-hackers@postgresql.org; Thu, 07 Sep 2017 04:53:22 +0000 Received: by mail-pg0-x232.google.com with SMTP id 188so15749351pgb.2 for ; Wed, 06 Sep 2017 21:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ohRZqKLn3bwQoW2fSDTVEtbsEX7kondKvwLoaAreU74=; b=FaCHpO4GdqENGdHoClnlXIGErPzlvjRzn+MYRgiBVeLDcGs5O1GdlAt3xJahpq9+Vu xwJEkrH7E86fRkxdCLkUulvo3eZvkPRFU/mKmNaGaG3886clPCLAZ1W4whxF6v/NsuwI rsK2n6weQHU5uTzE5J75AwjGpknGm31G/cYpw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ohRZqKLn3bwQoW2fSDTVEtbsEX7kondKvwLoaAreU74=; b=E5vQSTTOIwUdYhYult7XnXMsu5qDkj9nCkIRz446NyhBT3QGmBsG18HgIc7TwoAmEx 84cCR6FOcqYRFEEUnrNrF/Fxhi+OjUnDamNCTp4zoRE2gR/2mTsSbyu2yToFdNPK9rLM 9RWPqIz/Fbk9NmABzn9AB5imgwGn+LQd2awZHCVLOMga1neHSjyf3uFTTpjrbWV3Sm6l gnxRfl0soTnU13Duc2lYkCiJijoi4DPgwGD65mUMfoJlqUz+wgscWJCYTfR+Eyecnsgh tBNJVMCEN6BXkRBtkRvnnDjmKnoU26FEwEmc4YfKoxnnfqf9kCgK2Io8MlNJe6eyspoH yVag== X-Gm-Message-State: AHPjjUjPxMTOHx7VgvH+GIhpekt3G4YL3FimAVgjAZlqSk1CA4F+Vzhv wrkA1vG4gGkvG5ZI X-Google-Smtp-Source: ADKCNb644/rKp0+19CrCvcEMOHUXze2W4RGE6yYaTi1N41y1wuyaovAszWFSkRUCA7vG5y5xG4rFZQ== X-Received: by 10.99.127.68 with SMTP id p4mr1452935pgn.253.1504759996219; Wed, 06 Sep 2017 21:53:16 -0700 (PDT) Received: from rfd.leadboat.com (c-73-158-248-138.hsd1.ca.comcast.net. [73.158.248.138]) by smtp.gmail.com with ESMTPSA id p28sm1753748pfk.121.2017.09.06.21.53.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Sep 2017 21:53:15 -0700 (PDT) Date: Thu, 7 Sep 2017 04:53:12 +0000 From: Noah Misch To: peter.eisentraut@2ndquadrant.com Cc: Masahiko Sawada , Arseny Sher , PostgreSQL-development Subject: Re: DROP SUBSCRIPTION hangs if sub is disabled in the same transaction Message-ID: <20170907045312.GA37725@rfd.leadboat.com> References: <87mv6av84w.fsf@ars-thinkpad> <87ingyv81u.fsf@ars-thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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 Wed, Sep 06, 2017 at 03:28:47PM +0900, Masahiko Sawada wrote: > On Mon, Sep 4, 2017 at 11:43 PM, Arseny Sher wrote: > > Arseny Sher writes: > > > >> Attached patch fixes this by stopping workers before RO drop, as > >> already done in case when we drop replication slot. > > > > Sorry, here is the patch. > > > > I could reproduce this issue, it's a bug. Added this to the open item. > The cause of this is commit 7e174fa7 which make subscription ddls kill > the apply worker only when transaction commit. I didn't look the patch > deeply yet but I'm not sure the approach that kills apply worker > before commit would be good. [Action required within three days. This is a generic notification.] The above-described topic is currently a PostgreSQL 10 open item. Peter, since you committed the patch believed to have created it, you own this open item. If some other commit is more relevant or if this does not belong as a v10 open item, please let us know. Otherwise, please observe the policy on open item ownership[1] and send a status update within three calendar days of this message. Include a date for your subsequent status update. Testers may discover new open items at any time, and I want to plan to get them all fixed well in advance of shipping v10. Consequently, I will appreciate your efforts toward speedy resolution. Thanks. [1] https://www.postgresql.org/message-id/20170404140717.GA2675809%40tornado.leadboat.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers