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 1jvUbe-0003KD-Dh for pgsql-general@arkaria.postgresql.org; Tue, 14 Jul 2020 23:45:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jvUbd-0001eU-Cr for pgsql-general@arkaria.postgresql.org; Tue, 14 Jul 2020 23:45:01 +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 1jvUbd-0001ca-56 for pgsql-general@lists.postgresql.org; Tue, 14 Jul 2020 23:45:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jvUba-0005mN-Ca for pgsql-general@lists.postgresql.org; Tue, 14 Jul 2020 23:45:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 06ENismr3023064; Tue, 14 Jul 2020 19:44:54 -0400 From: Tom Lane To: "David G. Johnston" cc: Julie Nishimura , "pgsql-general@lists.postgresql.org" Subject: Re: Convert hot_standby 9.4 postgresql into standalone server In-reply-to: References: Comments: In-reply-to "David G. Johnston" message dated "Tue, 14 Jul 2020 16:41:37 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3023062.1594770294.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 14 Jul 2020 19:44:54 -0400 Message-ID: <3023063.1594770294@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > On Tuesday, July 14, 2020, Julie Nishimura wrote: >> Hello, we currently have 9.4 hot_standby master-slave pair. Going forward, >> we can keep only one server. How can I convert the system properly? > If you are keeping the primary you shouldn’t have to do anything. The > absence of a secondary server shouldn’t impact the primary. You might be > recording more detail to WAL than strictly necessary but that isn’t wrong > outright. Yeah. What you *do* need to think about is, if you no longer have a standby server, what's your disaster recovery plan in case the primary fails? You need to have some good backup procedures in place. regards, tom lane