Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l04uU-00074B-DU for pgsql-admin@arkaria.postgresql.org; Thu, 14 Jan 2021 15:51:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l04uT-0002QO-5d for pgsql-admin@arkaria.postgresql.org; Thu, 14 Jan 2021 15:51:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l04uS-0002QG-U2 for pgsql-admin@lists.postgresql.org; Thu, 14 Jan 2021 15:51:40 +0000 Received: from resqmta-po-07v.sys.comcast.net ([2001:558:fe16:19:96:114:154:166]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l04uP-0006LI-Hj for pgsql-admin@lists.postgresql.org; Thu, 14 Jan 2021 15:51:39 +0000 Received: from resomta-po-12v.sys.comcast.net ([96.114.154.236]) by resqmta-po-07v.sys.comcast.net with ESMTP id 044QlyV8CMzft04uMlO103; Thu, 14 Jan 2021 15:51:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1610639494; bh=M9xV3326bPvi1SCzY8uNT1/2O6UrUcQ1rlyLdT9ltxE=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=ph/FJQCxQCkCCp0UD3/7MB3QBeOPnwktikbQ7HJ7JtcL7GVpQwTvDLUC5//FktVu/ fvZ+dN7cqVVKkpalVlZIDY6ZryNQx99lmfa/ZPT0ZkmaW8LapoZWWQcrKR4i4nlyvc uNYlD9CUvvuOEXYl0jz7a58u6JmmL9EDbh0ATa7LSWBcoBDBmQ8L6ZQ6L8nvB1TmVU rb+LvgfXtdQSXKGABwjy/pPa3Ns2sdx/srJxhpQi9hrlIsbeWyXSH1Cx+FZOQ9PoFl GqRPwhizTM2JS/1Uc9ZAQ3HPANhU9UMjLPEn5UZ5+m3NESLvK8S/GctJqBlPH/Lmrs 8lpOuHlG3Zm3Q== Received: from jsievers.comcast.net ([12.30.159.20]) by resomta-po-12v.sys.comcast.net with ESMTPA id 04uDlUrHMinpL04uDlE9QJ; Thu, 14 Jan 2021 15:51:32 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgeduledrtddtgdehjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddunecunecujfgurhephffvufhfffgjkfgfgggtgfesthhqredttderjeenucfhrhhomheplfgvrhhrhicuufhivghvvghrshcuoehgshhivghvvghrshduleestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhepvefhlefgueduveduteevgfdtkeehgefgheegteehkeekhfdvgedvheeuhedvkeevnecukfhppeduvddrfedtrdduheelrddvtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehjshhivghvvghrshdrtghomhgtrghsthdrnhgvthdpihhnvghtpeduvddrfedtrdduheelrddvtddpmhgrihhlfhhrohhmpehgshhivghvvghrshduleestghomhgtrghsthdrnhgvthdprhgtphhtthhopehhhigrmhgsuhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdgrughmihhnsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-Xfinity-VMeta: sc=0.00;st=legit Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id D149126005A; Thu, 14 Jan 2021 09:51:24 -0600 (CST) From: Jerry Sievers To: Yambu Cc: Pgsql-admin Subject: Re: Removing second slave server References: Date: Thu, 14 Jan 2021 09:51:24 -0600 In-Reply-To: (Yambu's message of "Thu, 14 Jan 2021 14:18:50 +0200") Message-ID: <87r1mno6tf.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Yambu writes: > Hello > > I want to reinstall my second slave server and I have to stop > replication. > > May i know if it's enough to just run the command=C2=A0below on the second > slave > > touch /tmp/postgresql.trigger.5432 You don't even have to do that if you're going to decom and put the server up again. > > Trigger file in recovery.conf is=C2=A0 > > trigger_file =3D '/tmp/postgresql.trigger.5432'=C2=A0 =C2=A0 > > Do i need to do anything on the master server so that wal files do > not build up since the second slave is no longer active? Perhaps, if you are using a replication slot which is typical on $recent releases such as Pg10. After the standby is down, drop the related replication slot on your primary else you'll retain WAL files unnecessarily and could fill the disk. HTH > > Im using PG v10,streaming replication > > regards > > > =C2=A0 > > --=20 Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net