From: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated
Date: Mon, 1 Jun 2020 00:45:17 +0300
Message-ID: <21E8CC88FA0044708D91626126C82ADE@dell2> (raw)
In-Reply-To: <9a3e15d5-774e-a0fd-6dd5-f2405c7ec304@aklaver.com>
References: <26EC9619620649D1B55C9C95811E4ADB@dell2>
<16e57e3f-5c26-fd55-d42a-f030c8550952@aklaver.com>
<102C5FA16F1549659B393B6A824B561F@dell2>
<9a3e15d5-774e-a0fd-6dd5-f2405c7ec304@aklaver.com>
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.
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: kobruleht2@hot.ee, adrian.klaver@aklaver.com
Subject: Re: How to start slave after pg_basebackup. Why min_wal_size and wal_keep_segments are duplicated
In-Reply-To: <21E8CC88FA0044708D91626126C82ADE@dell2>
References: <26EC9619620649D1B55C9C95811E4ADB@dell2> <16e57e3f-5c26-fd55-d42a-f030c8550952@aklaver.com> <102C5FA16F1549659B393B6A824B561F@dell2> <9a3e15d5-774e-a0fd-6dd5-f2405c7ec304@aklaver.com> <21E8CC88FA0044708D91626126C82ADE@dell2>
* 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