Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5a46-0000mq-Uj for pgsql-hackers@arkaria.postgresql.org; Tue, 02 May 2017 15:50:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d5a45-0003U5-Th for pgsql-hackers@arkaria.postgresql.org; Tue, 02 May 2017 15:50:13 +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 1d5a45-0003TU-DT for pgsql-hackers@postgresql.org; Tue, 02 May 2017 15:50:13 +0000 Received: from mail-qt0-x22f.google.com ([2607:f8b0:400d:c0d::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d5a3w-0008TF-IU for pgsql-hackers@postgresql.org; Tue, 02 May 2017 15:50:12 +0000 Received: by mail-qt0-x22f.google.com with SMTP id n4so17232720qte.2 for ; Tue, 02 May 2017 08:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=NNtcdGA4qjyC9MkI8eofcTkPb2FQSKy0JTtE5xXjaTU=; b=lPws8eIqCV+mdK/JATkmfbzMLELFCiI5h2n6/X+cRF9A7wDprT2dIz5LqRiMoCtj6I FzNrWygmtghAfCRZ/jH/qC3GWZhWyyp1TfquGssowcV9DBFCA8fBCLsuUKX982+6l85P /TuuG6jGbvJcLGK5t5yZjhvrCP2K2YtYuOZt4oa1rIw6bA28TotdTepQ1YWSx1pNoGoq qYGTKxU2O7PlWVKQb6YkP5tt7JU3InVC+yrFe2snhNntqOThVYvajVutyUPqahSzp5B4 V/TvQfyJdOtnsYXPVzTcq3Y+X1veKdEbcHE9/EEwRJRQ8mv0Qx+S/U4keZ1hS/vvVkCI tWbw== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=NNtcdGA4qjyC9MkI8eofcTkPb2FQSKy0JTtE5xXjaTU=; b=IUFgw42E/tQlcAPiT6RkTK2bOpcpe03zBwUl/JM1ZQsktFAKvxUqAORQQ/hT23YYfR Vj8XrUhFWr+mVaufBXqaSfkqjAKDZEl/+fhnVLIoFQWNmyOYtnxV0OBfz+HNQA2vKA7I LVc2y9Gwt0lvy0FB4AbOOfZpjyIUqNVkpcaC/eOMB41wPyrNS9RHAv8JSGNXDHzoMbei g1fyNVNcdeWPUNgddERVCsf7gZlSVzDDLfKFLiCHVmx7M6XX3XVsJpkiNLeiFo4dAqCV FDJp9QaoHYwiFAbUKvWS9uko/j1uJks1pCUCtVeMlXRvPZkFWdfCYP+dpXgAMnfBUvVx XBjQ== X-Gm-Message-State: AN3rC/4hgrLG7aV/e+lmx2E1jCyIFxUV5aOSzCef7lUrrNQcRbXy0RAU wFOP9gUlvnW9g9CM X-Received: by 10.200.49.61 with SMTP id g58mr29433379qtb.151.1493740201326; Tue, 02 May 2017 08:50:01 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.57.115.10]) by smtp.gmail.com with ESMTPSA id s23sm13952309qki.14.2017.05.02.08.50.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 May 2017 08:50:00 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E1A803B8; Tue, 2 May 2017 12:49:59 -0300 (-03) Date: Tue, 2 May 2017 12:49:59 -0300 From: Alvaro Herrera To: Petr Jelinek Cc: Tom Lane , Robert Haas , Michael Paquier , PostgreSQL mailing lists Subject: Re: logical replication syntax (was DROP SUBSCRIPTION, query cancellations and slot handling) Message-ID: <20170502154959.r45gitdimklbcrwt@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) X-Pg-Spam-Score: -1.9 (-) 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 Petr Jelinek wrote: > So the only way to fulfill the requirement you stated is to just not try > to drop the slot, ever, on DROP SUBSCRIPTION. That makes the default > behavior leave resources on upstream that will eventually cause that > server to stop unless user notices before. I think we better invent > something that limits how much inactive slots can hold back WAL and > catalog_xmin in this release as well then. I don't understand why isn't the default behavior to unconditionally drop the slot. Why do we ever want the slot to be kept? -- Álvaro Herrera https://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