From: Ian Barwick <ian.barwick@2ndquadrant.com>
To: Jonatan Evald Buus <jonatan.buus@cellpointmobile.com>
To: pgsql-general@postgresql.org
Subject: Re: Streaming Replication between PostGreSQL 9.2.2 on Red Hat and PostGreSQL 9.2.24 on Debian
Date: Mon, 21 May 2018 20:27:30 +0900
Message-ID: <cf267f9b-1e4b-a8e6-d784-3736f0e8f273@2ndquadrant.com> (raw)
In-Reply-To: <CABnF-8+xWd6A-Jvypb93gMdpRdn6YoQHS9LLY6LoTfbFPv93-A@mail.gmail.com>
References: <CABnF-8+xWd6A-Jvypb93gMdpRdn6YoQHS9LLY6LoTfbFPv93-A@mail.gmail.com>
On 05/21/2018 07:18 PM, Jonatan Evald Buus wrote:
> Hi there,
>
> I'm trying to configure streaming replication between a Red Hat server
> running PostGreSQL 9.2.2 and a Debian server running PostGreSQL 9.2.24
> with Hot Standby enabled.
>
> While the base backup works fine using /pg_basebackup/, I get the following
> errors with hot standby enabled on the Debian slave when starting PostGreSQL:
> /WARNING: WAL was generated with wal_level=minimal, data may be missing/
> /HINT: This happens if you temporarily set wal_level=minimal without taking a new base backup./
> /FATAL: hot standby is not possible because wal_level was not set to "hot_standby" on the master server/
> /HINT: Either set wal_level to "hot_standby" on the master, or turn off hot_standby here/
>
> If I turn Hot Standby off on the Debian Slave I get the following errors:
> /FATAL: database system identifier differs between the primary and standby/
> /DETAIL: The primary's identifier is 5940475598986796885, the standby's identifier is 6557962695089036503./
The standby clearly hasn't been cloned from the primary, otherwise the
identifiers would be the same. Are you sure the PostgreSQL instance
running on the standby is the one you backed up with pg_basebackup?
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
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: ian.barwick@2ndquadrant.com, jonatan.buus@cellpointmobile.com
Subject: Re: Streaming Replication between PostGreSQL 9.2.2 on Red Hat and PostGreSQL 9.2.24 on Debian
In-Reply-To: <cf267f9b-1e4b-a8e6-d784-3736f0e8f273@2ndquadrant.com>
References: <CABnF-8+xWd6A-Jvypb93gMdpRdn6YoQHS9LLY6LoTfbFPv93-A@mail.gmail.com> <cf267f9b-1e4b-a8e6-d784-3736f0e8f273@2ndquadrant.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