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 1ktxu7-0004Lb-R1 for pgsql-admin@arkaria.postgresql.org; Mon, 28 Dec 2020 19:10:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ktxu6-00053w-HA for pgsql-admin@arkaria.postgresql.org; Mon, 28 Dec 2020 19:10:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktxu6-00053d-9l for pgsql-admin@lists.postgresql.org; Mon, 28 Dec 2020 19:10:02 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktxu1-0000HH-Rf for pgsql-admin@postgresql.org; Mon, 28 Dec 2020 19:10:00 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id E943922376; Mon, 28 Dec 2020 19:09:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2VkMqoXP20Yj; Mon, 28 Dec 2020 19:09:54 +0000 (UTC) Received: from [192.168.0.5] (75-166-125-160.hlrn.qwest.net [75.166.125.160]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id A52DB2122B; Mon, 28 Dec 2020 19:09:51 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: how to fail over slave to master From: Scott Ribe In-Reply-To: <611218422.3134435.1609181699910@mail.yahoo.com> Date: Mon, 28 Dec 2020 12:09:50 -0700 Cc: Amine Tengilimoglu , Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: References: <984856653.599807.1609180184705.ref@mail.yahoo.com> <984856653.599807.1609180184705@mail.yahoo.com> <611218422.3134435.1609181699910@mail.yahoo.com> To: Pepe TD Vo X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Dec 28, 2020, at 11:54 AM, Pepe TD Vo wrote: >=20 > Version 12 and can you show me step by step what needs to do? I found = a document in version 10 to promote salve to master with pg_ctl and = create recovery.conf. Recovery.conf is not existed in version 12 but in = version 1. 1) The parameters that used to be set in recovery.conf are instead set = in postgresql.conf in 12 & above. 2) They are set on your replica; otherwise it would not come up as a = replica. They are not needed in a master.