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:43:02 +0300
Message-ID: <246B62BD5BB44DCE8AEB15CA9723CDCE@dell2> (raw)
In-Reply-To: <698dbad1-e3b2-f13a-8e97-8ce01efed516@aklaver.com>
References: <26EC9619620649D1B55C9C95811E4ADB@dell2>
<16e57e3f-5c26-fd55-d42a-f030c8550952@aklaver.com>
<102C5FA16F1549659B393B6A824B561F@dell2>
<698dbad1-e3b2-f13a-8e97-8ce01efed516@aklaver.com>
Hi!
>In addition to my most recent questions:
>What are you trying to achieve?
I want to create hot standby async server 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
>In other words why do a pg_basebackup if you have a standby receiving WALs?
I dont receive WALs.
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: <246B62BD5BB44DCE8AEB15CA9723CDCE@dell2>
References: <26EC9619620649D1B55C9C95811E4ADB@dell2> <16e57e3f-5c26-fd55-d42a-f030c8550952@aklaver.com> <102C5FA16F1549659B393B6A824B561F@dell2> <698dbad1-e3b2-f13a-8e97-8ce01efed516@aklaver.com> <246B62BD5BB44DCE8AEB15CA9723CDCE@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