Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated - Mailing list pgsql-general

From Andrus
Subject Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated
Date
Msg-id 21E8CC88FA0044708D91626126C82ADE@dell2
Whole thread Raw
In response to Re: How to start slave after pg_basebackup. Why min_wal_size andwal_keep_segments are duplicated  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
Hi!

>> Will wal_keep_segments  keep segments also if named replication slot is 
>> lot used ?
>Well if you are using a replication slot there is no point in using 
>wal_keep_segments. Slots where created in, part at least, so you did not 
>have to guess at a wal_keep_segments number.

I dont use slot.

>To really answer this we will need to see the exact commands you are 
>using and the sequence they are done in.

Replication server is created using

/etc/init.d/postgresql stop
mv /var/lib/postgresql/12/main /var/lib/postgresql/12/mainold
pg_basebackup --write-recovery-conf -D /var/lib/postgresql/12/main
chmod --recursive --verbose 0700 /var/lib/postgresql/12/main
chown -Rv postgres:postgres /var/lib/postgresql/12/main
/etc/init.d/postgresql start

Andrus.




pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated
Next
From: Stefan Keller
Date:
Subject: Re: Oracle vs. PostgreSQL - a comment