pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: setting up streaming replication
Date: Tue, 24 Oct 2023 14:59:29 -0500
Message-ID: <9f98cba1-263b-4757-b4b1-7e0fe70ba1d7@gmail.com> (raw)
In-Reply-To: <CAA_1=91w6y4Qxuy0RQTkx5xO3vZg_t0Xjz8dB3SbGSgEvF9CXQ@mail.gmail.com>
References: <CAA_1=90OkN-U96eeiHE0=wC218gqYDdzEwcNxPaPGwtcE7+zfg@mail.gmail.com>
	<7a9570a6-07a9-4b41-b419-b4a0aa67fc53@gmail.com>
	<9d194507-1d73-4222-a7e5-fa9417bfd69f@edison>
	<08345d16-a49a-43e1-8dfd-b8bc9b04b314@gmail.com>
	<CAA_1=91w6y4Qxuy0RQTkx5xO3vZg_t0Xjz8dB3SbGSgEvF9CXQ@mail.gmail.com>

On 10/24/23 13:31, Brad White wrote:
> On Tue, Oct 24, 2023 at 8:56 AM Ron <ronljohnsonjr@gmail.com> wrote:
>
>     On 10/24/23 08:14, b55white wrote:
>>     Is all that stuff with slots necessary since the backup will automatically create a temporary slot for replication?
>
>     I want a permanent slot so that replication automatically resumes if
>     the secondary must temporarily be taken down.
>
>     --
>
> Wait.
>
> Are you saying that once I get streaming replication set up, it quits 
> working when I reboot the servers once a week?

Maybe with temporary slots, but definitely not with permanent slots.

I just stopped a replicated pair, and started them up again:

Secondary> pg_ctl stop -mfast
Primary> pg_ctl stop -mfast
Primary> pg_ctl start -w
Secondary> pg_ctl start -w
Primary> psql -Xc "select * from pg_stat_replication;"
Secondary> psql -Xc "select * from pg_stat_wal_receiver;"

-- 
Born in Arizona, moved to Babylonia.

view thread (8+ messages)

Message-ID: <9f98cba1-263b-4757-b4b1-7e0fe70ba1d7@gmail.com>
Permalink:  ../9f98cba1-263b-4757-b4b1-7e0fe70ba1d7@gmail.com/
Also on:    postgresql.org/message-id/9f98cba1-263b-4757-b4b1-7e0fe70ba1d7@gmail.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: ronljohnsonjr@gmail.com
  Subject: Re: setting up streaming replication
  In-Reply-To: <9f98cba1-263b-4757-b4b1-7e0fe70ba1d7@gmail.com>
  References: <CAA_1=90OkN-U96eeiHE0=wC218gqYDdzEwcNxPaPGwtcE7+zfg@mail.gmail.com> <7a9570a6-07a9-4b41-b419-b4a0aa67fc53@gmail.com> <9d194507-1d73-4222-a7e5-fa9417bfd69f@edison> <08345d16-a49a-43e1-8dfd-b8bc9b04b314@gmail.com> <CAA_1=91w6y4Qxuy0RQTkx5xO3vZg_t0Xjz8dB3SbGSgEvF9CXQ@mail.gmail.com> <9f98cba1-263b-4757-b4b1-7e0fe70ba1d7@gmail.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