From: | Ron <ronljohnsonjr(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: setting up streaming replication |
Date: | 2023-10-24 19:59:29 |
Message-ID: | 9f98cba1-263b-4757-b4b1-7e0fe70ba1d7@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 10/24/23 13:31, Brad White wrote:
> On Tue, Oct 24, 2023 at 8:56 AM Ron <ronljohnsonjr(at)gmail(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2023-10-24 20:31:47 | Re: Question about tuple´s lock |
Previous Message | Christophe Pettus | 2023-10-24 18:37:04 | Re: setting up streaming replication |