Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipa7L-0000H2-JN for pgsql-general@arkaria.postgresql.org; Thu, 09 Jan 2020 15:53:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipa7K-00064Y-D4 for pgsql-general@arkaria.postgresql.org; Thu, 09 Jan 2020 15:53:02 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipa7J-00064P-E0 for pgsql-general@lists.postgresql.org; Thu, 09 Jan 2020 15:53:02 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ipa7F-0003CS-Hr for pgsql-general@lists.postgresql.org; Thu, 09 Jan 2020 15:53:00 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 52E1921E29; Thu, 9 Jan 2020 10:52:55 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 09 Jan 2020 10:52:55 -0500 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=YCAqL50VDa7LvPnO/SdHQwdQ7WD9gaSttknOCR8ym Mw=; b=qFhTcx8lWc45rKOnUhTNaHPWVt8beDVYkxo4A3NRVISGc4JxSqLmx2bEf gfBXQL95n94gg9xYpR6uGETo6DEsLNpK9qUsg1OrbO528KyxR3jTyWdguJ7htKlj 9XHbmkjHddd3bvA8I5j/XZtPLEA6E1TxceSk7kcwI2d72uHgyRwMkNnAGfqY1pT4 tqif0PWjVj0ec5K5zf30hXG0hwEFX5+m4sXXwFSfc1rxVA3LlxsstCEtDheqEjMI Gw7XLJ0eVW3X0a1t5ZtAHXsnki2QOMMYDxjiRsItsKNr80Nrb5Kxi3H3D6uUL/i7 ZDVh7i+3CE5eVZO0u8ECEg2Jz6c3Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeiuddggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegfedrudekjedrudeggeenucfrrghrrghmpehmrghilhhfrh homhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from april.pezone.net (p5df3bb90.dip0.t-ipconnect.de [93.243.187.144]) by mail.messagingengine.com (Postfix) with ESMTPA id 4051130602DB; Thu, 9 Jan 2020 10:52:54 -0500 (EST) Subject: Re: Is it safe to transfer logical replication publication/subscription? To: Mike Lissner References: <70822442-b8dc-1394-382b-ed8a024c89d8@2ndquadrant.com> Cc: pgsql-general@lists.postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <714db546-174c-806b-f2d7-708a1658109f@2ndquadrant.com> Date: Thu, 9 Jan 2020 16:52:53 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-01-08 23:55, Mike Lissner wrote: > That's a great point, thanks. The DROP SUBSCRIPTION notes say you can: > >> Disassociate the subscription from the replication slot by executing ALTER SUBSCRIPTION ... SET (slot_name = NONE). After that, DROP SUBSCRIPTION will no longer attempt any actions on a remote host. > > I'll read some more about the replication slots themselves (I did read > about them a while back), but doing the above seems like a good way to > break B from A, before resubscribing C to A instead? Yes, that's the one you want. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services