From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Problems starting slave
Date: Tue, 3 Oct 2023 10:08:17 -0500
Message-ID: <5f7267fe-de7f-7e94-eed3-88d385099cea@gmail.com> (raw)
In-Reply-To: <1134928812.1852960.1696343838608@mail.yahoo.com>
References: <1134928812.1852960.1696343838608.ref@mail.yahoo.com>
<1134928812.1852960.1696343838608@mail.yahoo.com>
On 10/3/23 09:37, Douglas Reed wrote:
> Hi the full pg_basebackup command was;
>
> pg_basebackup -h 172.110.6.5 -D /var/lib/pgsql/12/data -R -U postgres
> --wal-method=stream
I get consistently successful results in v15 using this set of commands
(where the service options reference the primary server in .pg_service_conf):
psql service=primary -c "select pg_drop_replication_slot(slot_name) from
pg_replication_slots where slot_name = 'pgstandby1';"
/usr/bin/rm -r $PGDATA/*
pg_basebackup --dbname=service=basebackup -D $PGDATA --progress
--checkpoint=fast -v \
--write-recovery-conf --wal-method=stream --create-slot
--slot=pgstandby1 --compress=server-zstd
pg_ctl start -wt90
zstd compression might not be supported by v12.
--
Born in Arizona, moved to Babylonia.
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: Problems starting slave
In-Reply-To: <5f7267fe-de7f-7e94-eed3-88d385099cea@gmail.com>
References: <1134928812.1852960.1696343838608.ref@mail.yahoo.com> <1134928812.1852960.1696343838608@mail.yahoo.com> <5f7267fe-de7f-7e94-eed3-88d385099cea@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