pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: franz@kalibrr.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15073: Bad error message for when pg_basebackup fails due to incorrect wal_level
Date: Mon, 19 Feb 2018 12:15:24 +0900
Message-ID: <20180219031524.GA8332@paquier.xyz> (raw)
In-Reply-To: <151900699070.1391.5862985411054912618@wrigleys.postgresql.org>
References: <151900699070.1391.5862985411054912618@wrigleys.postgresql.org>

On Mon, Feb 19, 2018 at 02:23:10AM +0000, PG Bug reporting form wrote:
> PostgreSQL version: 9.6.6
> [...]
>
> After some tinkering, we found that updating the following line in the
> primary's postgresql.conf from:
> 
> wal_level = archive
> 
> to:
> 
> wal_level = hot_standby
> 
> resolves the issue. 
> 
> It just seems like a bad user experience and a more meaningful error message
> would've helped.

In PostgreSQL 9.6, "archive" and "hot_standby" have the same meaning for
wal_level, and they map to the new value "replica".  Please note that
with older versions of PostgreSQL, it is perfectly possible to take base
backups with wal_level = archive using pg_basebackup.  You just need to
make sure that max_wal_senders has a positive setting value. 
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (2+ messages)

Message-ID: <20180219031524.GA8332@paquier.xyz>
Permalink:  ../20180219031524.GA8332@paquier.xyz/
Also on:    postgresql.org/message-id/20180219031524.GA8332@paquier.xyz

 · 

reply

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-bugs@postgresql.org
  Cc: michael@paquier.xyz, franz@kalibrr.com
  Subject: Re: BUG #15073: Bad error message for when pg_basebackup fails due to incorrect wal_level
  In-Reply-To: <20180219031524.GA8332@paquier.xyz>
  References: <151900699070.1391.5862985411054912618@wrigleys.postgresql.org> <20180219031524.GA8332@paquier.xyz>

* 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