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 1ipYaZ-0004fI-CM for pgsql-general@arkaria.postgresql.org; Thu, 09 Jan 2020 14:15:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipYaY-0004ut-4P for pgsql-general@arkaria.postgresql.org; Thu, 09 Jan 2020 14:15:06 +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 1ipYaX-0004ul-Oo for pgsql-general@lists.postgresql.org; Thu, 09 Jan 2020 14:15:05 +0000 Received: from mail.dalibo.com ([212.85.157.172]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ipYaU-0001G3-Jh for pgsql-general@postgresql.org; Thu, 09 Jan 2020 14:15:05 +0000 Received: from firost (unknown [88.190.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 1A4461FA6F; Thu, 9 Jan 2020 15:15:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1578579300; bh=IiEsUb/214SHB32IAEjF3ypyi4Q6EWCBBOc5iCSnV0E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qgX0yw5c4pH82wd6Iy7In7eL4YrpjKy+dqh7hN/SwUgfsjuf3la7legfjuEbxM7+y b7arrMXndWO6fiCBIwI1yYpsJu2yffX5P0w+ksmqg/RvBecEvNRqXbGCK3v2b/aJ2f SXiwYgUnDTNQIbyovVkVLc9IXM4S0pblWhYBON90= Date: Thu, 9 Jan 2020 15:14:59 +0100 From: Jehan-Guillaume de Rorthais To: Rita Cc: Michael Paquier , pgsql-general@postgresql.org Subject: Re: what to do after a failover Message-ID: <20200109151459.03111216@firost> In-Reply-To: References: <20200109043139.GI2251@paquier.xyz> Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, 9 Jan 2020 06:55:18 -0500 Rita wrote: > Thanks for the response. > I am using Postgresql 11. > I want something simple and I have a strong preference toward using stock > tools. After the promotion and the original master comes online, I was > thinking of doing a pg_basebackup to sync. Any thoughts about that? If you can afford that, this is the cleanest and easiest procedure you could find. Note that pg_basebackup need an empty PGDATA, so it will have to transfert the whole instance from new promoted primary to the original one. Regards,