pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Convert hot_standby 9.4 postgresql into standalone server
3+ messages / 3 participants
[nested] [flat]

* Convert hot_standby 9.4 postgresql into standalone server
@ 2020-07-14 23:25 Julie Nishimura <juliezain@hotmail.com>
  2020-07-14 23:41 ` Re: Convert hot_standby 9.4 postgresql into standalone server David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Julie Nishimura @ 2020-07-14 23:25 UTC (permalink / raw)
  To: pgsql-general; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Convert hot_standby 9.4 postgresql into standalone server
  2020-07-14 23:25 Convert hot_standby 9.4 postgresql into standalone server Julie Nishimura <juliezain@hotmail.com>
@ 2020-07-14 23:41 ` David G. Johnston <david.g.johnston@gmail.com>
  2020-07-14 23:44   ` Re: Convert hot_standby 9.4 postgresql into standalone server Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: David G. Johnston @ 2020-07-14 23:41 UTC (permalink / raw)
  To: Julie Nishimura <juliezain@hotmail.com>; +Cc: pgsql-general; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On Tuesday, July 14, 2020, Julie Nishimura <juliezain@hotmail.com> 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.

David J.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Convert hot_standby 9.4 postgresql into standalone server
  2020-07-14 23:25 Convert hot_standby 9.4 postgresql into standalone server Julie Nishimura <juliezain@hotmail.com>
  2020-07-14 23:41 ` Re: Convert hot_standby 9.4 postgresql into standalone server David G. Johnston <david.g.johnston@gmail.com>
@ 2020-07-14 23:44   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2020-07-14 23:44 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: Julie Nishimura <juliezain@hotmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tuesday, July 14, 2020, Julie Nishimura <juliezain@hotmail.com> 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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-07-14 23:44 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14 23:25 Convert hot_standby 9.4 postgresql into standalone server Julie Nishimura <juliezain@hotmail.com>
2020-07-14 23:41 ` David G. Johnston <david.g.johnston@gmail.com>
2020-07-14 23:44   ` Tom Lane <tgl@sss.pgh.pa.us>

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