pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julie Nishimura <juliezain@hotmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Convert hot_standby 9.4 postgresql into standalone server
Date: Tue, 14 Jul 2020 23:25:54 +0000
Message-ID: <BYAPR08MB5014BADC15CDCAFC0B5A4059AC610@BYAPR08MB5014.namprd08.prod.outlook.com> (raw)

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?

These are some snippets from master postgresql.conf file:

==================================
wal_level = hot_standby                 # minimal, archive, hot_standby, or logical
                                        # (change requires restart)
                                        checkpoint_segments = 16
wal_keep_segments = 512
max_wal_senders = 16            # max number of walsender processes
                                # (change requires restart)
max_replication_slots = 12      # max number of replication slots
===================================

Is it enough if I do the following:
1) backup all dbs on master
2) shutdown both servers
3) update max_replication_slots=0 in postgresql.conf on master
4) update wal_level = minimal in postgresql.conf on master
4) start master

Do I need to do anything else? Thank you for your help

view thread (3+ messages)  latest in thread

Message-ID: <BYAPR08MB5014BADC15CDCAFC0B5A4059AC610@BYAPR08MB5014.namprd08.prod.outlook.com>
Permalink:  ../BYAPR08MB5014BADC15CDCAFC0B5A4059AC610@BYAPR08MB5014.namprd08.prod.outlook.com/
Also on:    postgresql.org/message-id/BYAPR08MB5014BADC15CDCAFC0B5A4059AC610@BYAPR08MB5014.namprd08.prod.outlook.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: juliezain@hotmail.com
  Subject: Re: Convert hot_standby 9.4 postgresql into standalone server
  In-Reply-To: <BYAPR08MB5014BADC15CDCAFC0B5A4059AC610@BYAPR08MB5014.namprd08.prod.outlook.com>
  References: <BYAPR08MB5014BADC15CDCAFC0B5A4059AC610@BYAPR08MB5014.namprd08.prod.outlook.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox