Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7HRr-0006eQ-6C for pgsql-hackers@arkaria.postgresql.org; Sun, 07 May 2017 08:21:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d7HRp-0000Ul-Qj for pgsql-hackers@arkaria.postgresql.org; Sun, 07 May 2017 08:21:45 +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 1d7HRn-0000TH-A9 for pgsql-hackers@postgresql.org; Sun, 07 May 2017 08:21:43 +0000 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d7HRd-00029f-OZ for pgsql-hackers@postgresql.org; Sun, 07 May 2017 08:21:42 +0000 Received: by mail-pf0-x22b.google.com with SMTP id v14so19963100pfd.2 for ; Sun, 07 May 2017 01:21:33 -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=LuBaa0c5ZCfopDmXN9YKtPb3btY/aayZ0OJH4Q8IARM=; b=Kvqq8lpOs8Moin5kfV8eNyYgmdjN2SU1q0lDgDIIM5uD0HC7Dt7AbIIx19tOZinApI Nqd4fr5Ps2IjjHagAKS78qNNum2/yZ3B6Wqqz0AMNR5EpbtxROizdPvrGbWrDtkzixk8 CJp5tSpnRKbmwaTa0O0EiJTPDHrKZL8VrkiYQ= 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=LuBaa0c5ZCfopDmXN9YKtPb3btY/aayZ0OJH4Q8IARM=; b=Rb7R3uXQdiShzy3xP7sbF8nQ9glku+xe8UfVehYUDkz33GtzeXEL6TDsgeeEaVkuvj AtGJWNaSiSVsscOTD0vPWqmN0IUalEb1hhG80Rrr48ucakiqiHMSxqFdntGCjCg7wslU sOwaHiQ2ow78pNDPHOF4Fjt35bzriFFLVbvvaibeRSJdZiRb8acYjHzngfo/bZHs5QOf y1ZrznulQTTVu9gqsxa/q7SD+Up8JG1Y4EdE4fa/PQJoeLeIgVXny4C1VfhXA48tYECW ciFLMn3fRm/59L08GOpPsVn2OQvS2nn/ZxX/i9OoAe6k6P9f+Uah2BxnJKQsdbFkg/Ry mtnQ== X-Gm-Message-State: AN3rC/5D6AnnCq5dyVtnzkuonw6TAvi0G+QAAkzjnYKM9hHEgE8CCo9a t6BejEvFvxMxog== X-Received: by 10.99.147.5 with SMTP id b5mr12312381pge.218.1494145291343; Sun, 07 May 2017 01:21:31 -0700 (PDT) Received: from rfd.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id p80sm16004805pfk.50.2017.05.07.01.21.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 May 2017 01:21:30 -0700 (PDT) Date: Sun, 7 May 2017 08:21:28 +0000 From: Noah Misch To: peter.eisentraut@2ndquadrant.com Cc: Tom Lane , Robert Haas , Petr Jelinek , Michael Paquier , PostgreSQL mailing lists Subject: Re: logical replication syntax (was DROP SUBSCRIPTION, query cancellations and slot handling) Message-ID: <20170507082128.GK843225@rfd.leadboat.com> References: <27478.1493727233@sss.pgh.pa.us> <29431.1493730652@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29431.1493730652@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.0 (--) 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 Tue, May 02, 2017 at 09:10:52AM -0400, Tom Lane wrote: > Robert Haas writes: > >> On Thu, Apr 20, 2017 at 7:46 AM, Petr Jelinek > >> wrote: > >>> DROP SUBSCRIPTION mysub NODROP SLOT; > > >> I'm pretty uninspired by this choice of syntax. > > Actually, this command has got much worse problems than whether you like > the spelling of its option: it shouldn't have an option in the first > place. I put it to you as an inviolable rule that no object DROP command > should ever have any options other than RESTRICT/CASCADE and IF EXISTS. > If it does, then you don't know what to do when the object is recursed > to by a cascaded drop. > > It's possible that we could allow exceptions to this rule for object types > that can never have any dependencies. But a subscription doesn't qualify > --- it's got an owner, so DROP OWNED BY already poses this problem. Looks > to me like it's got a dependency on a database, too. (BTW, if > subscriptions are per-database, why is pg_subscription a shared catalog? > There were some pretty schizophrenic decisions here.) > > So ISTM we need to get rid of the above-depicted syntax. We could instead > have what-to-do-with-the-slot as a property of the subscription, > established at CREATE SUBSCRIPTION and possibly changed later by ALTER > SUBSCRIPTION. Not quite sure what to call the option, maybe something > based on the concept of the subscription "owning" the slot. > > I think this is a must-fix issue, and will put it on the open items > list. [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