From: Brad White <b55white@gmail.com>
To: Ian Lawrence Barwick <barwick@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Setting up replication on Windows, v9.4
Date: Thu, 10 Nov 2022 21:25:53 -0600
Message-ID: <1995501f-a7f3-9459-2412-dcfdafe9ac41@gmail.com> (raw)
In-Reply-To: <CAB8KJ=g99cmYbBx4zqYKCmDaH69AUoZ7x7o4k=Z8vk6qX-Vj-A@mail.gmail.com>
References: <CAA_1=93vc6szcOe-F4W7FwAZkXCrC2-ODY6GV7C8CtQfbg0V0Q@mail.gmail.com>
<CAB8KJ=jfdntxLgeQ8vJfjf7CmhxE_y0ot=PTerbx6RSU7VaKFA@mail.gmail.com>
<CAB8KJ=g99cmYbBx4zqYKCmDaH69AUoZ7x7o4k=Z8vk6qX-Vj-A@mail.gmail.com>
From the error log:
FATAL: hot standby is not possible because wal_level was not
set to "hot_standby" or higher on the master server
HINT: Either set wal_level to "hot_standby" on the master, or
turn off hot_standby here.
I tried setting hot_standby to off, but that didn't help.
I set the wal_level to "hot_standby" and hot_standby to on, and now it
appears to have made progress.
The service starts up without failing.
> check if there's an entry in pg_stat_replication on the primary.
No. No entries.
There is now an entry on the primary.
But still can't connect from Navicat on the primary server and the log says
FATAL: could not receive data from WAL stream: server closed the
connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
LOG: record with zero length at 6B/63000090
FATAL: could not connect to the primary server: FATAL: the
database system is starting up
LOG: started streaming WAL from primary at 6B/63000000 on timeline 1
LOG: startup process (PID 3368) exited with exit code 1
LOG: terminating any other active server processes
¯\_(ツ)_/¯
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: b55white@gmail.com, barwick@gmail.com
Subject: Re: Setting up replication on Windows, v9.4
In-Reply-To: <1995501f-a7f3-9459-2412-dcfdafe9ac41@gmail.com>
References: <CAA_1=93vc6szcOe-F4W7FwAZkXCrC2-ODY6GV7C8CtQfbg0V0Q@mail.gmail.com> <CAB8KJ=jfdntxLgeQ8vJfjf7CmhxE_y0ot=PTerbx6RSU7VaKFA@mail.gmail.com> <CAB8KJ=g99cmYbBx4zqYKCmDaH69AUoZ7x7o4k=Z8vk6qX-Vj-A@mail.gmail.com> <1995501f-a7f3-9459-2412-dcfdafe9ac41@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