Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBnsU-0008UT-CB for pgsql-general@arkaria.postgresql.org; Sun, 14 Oct 2018 21:24:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gBnsS-0003dC-Po for pgsql-general@arkaria.postgresql.org; Sun, 14 Oct 2018 21:24:44 +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.89) (envelope-from ) id 1gBnsQ-0003cz-R4 for pgsql-general@lists.postgresql.org; Sun, 14 Oct 2018 21:24:44 +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.89) (envelope-from ) id 1gBnsK-0005J0-9v for pgsql-general@lists.postgresql.org; Sun, 14 Oct 2018 21:24:42 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 34B7921AFB; Sun, 14 Oct 2018 17:24:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 14 Oct 2018 17:24:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=FVHfwX/Ct6yOmxQmJphNP2bXRbM P1ABN6rMpldxok+s=; b=rjJ/GnXnLSnvISEHQENeB8UIOHNHf+KKuAwtUgUmGT2 at8PLewWUlFOj+polUK9umIlWArVBJ3dxZ6iik+gELOetUoylM4DghfzHN2vAh9j n7eMxhCYovaZB0heFKS0RXo4t8zCy5b6sZiogVE3Mlz6pAH/jwbF60Aq/jsG/8YN ShlYWDV0JCUQeXbuF+O/R9LVyq6n+O4+/LWTzTcmvFzH8IpqkancB3U3w396Oqo5 DQpyKEZ0zqcgjVSdohFPVasXbbce2sk/MtFWQ8FnH92pmtDdfsBR37amtlJoghxX 01rZ4N0p6JqCc/A1XwZ+ZUnrxPqsLmpnJvb4zzitnXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=FVHfwX /Ct6yOmxQmJphNP2bXRbMP1ABN6rMpldxok+s=; b=b/gOtrfCrNZETxaa/s0Xgn kIRIDFo9NSrII7S+KcUO3QI/V4xhq4Vwu/4N4E1U1RHKwjZd/ClYXg3B3ydNNDwZ KakZuInhUC8h5g4S9YGbQG9K4aVpk9XmjPm7I42Xw1mBj6PSkrGZP0I58w+piLnd tUZ6ctnZzuj6soNS6ltbn59jKwFt6teR65qLhEJKvu5y5IoC09UVAd6andBVibw5 Sy4y86sTKkzVB1qcPvyEhg8yNLPqYJvwLfiGwPp4iu+TQEQSTI0GPDWQgovgfQae 6jbviWmzjNQSQXle6GYoxreej3LcOxaZX4dysgCy+yj/MHQeY3cxb2F/WblQMlVA == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-71-202-120-112.hsd1.ca.comcast.net [71.202.120.112]) by mail.messagingengine.com (Postfix) with ESMTPA id B59E4E47E1; Sun, 14 Oct 2018 17:24:33 -0400 (EDT) Date: Sun, 14 Oct 2018 14:24:32 -0700 From: Andres Freund To: bhargav kamineni Cc: pgsql-general@lists.postgresql.org Subject: Re: Slot issues Message-ID: <20181014212432.tddouorjgpcpi6af@alap3.anarazel.de> References: <20181014202042.gi6o3kitjvczc5ym@alap3.anarazel.de> <20181014211054.wxsekk3lqmdlacos@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, As I just wrote: > On Mon, 15 Oct 2018 at 02:40, Andres Freund wrote: > > Please try to quote properly. On 2018-10-15 02:45:51 +0530, bhargav kamineni wrote: > Yeah i have used rsync , Got it now will increase the max_replication_slots > to high enough , Thank you Andres Freund :-) You probably afterwards want to drop those slots from the new standby. See the following section from the docs: https://www.postgresql.org/docs/current/static/continuous-archiving.html#BACKUP-LOWLEVEL-BASE-BACKUP-DATA "It is often a good idea to also omit from the backup the files within the cluster's pg_replslot/ directory, so that replication slots that exist on the master do not become part of the backup. Otherwise, the subsequent use of the backup to create a standby may result in indefinite retention of WAL files on the standby, and possibly bloat on the master if hot standby feedback is enabled, because the clients that are using those replication slots will still be connecting to and updating the slots on the master, not the standby. Even if the backup is only intended for use in creating a new master, copying the replication slots isn't expected to be particularly useful, since the contents of those slots will likely be badly out of date by the time the new master comes on line." Greetings, Andres Freund