BUG #6619: Misleading output from slave when host is not running - Mailing list pgsql-bugs

From petteri.raty@aalto.fi
Subject BUG #6619: Misleading output from slave when host is not running
Date
Msg-id E1SNfuA-0001O7-0C@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #6619: Misleading output from slave when host is not running  (Simon Riggs <simon@2ndQuadrant.com>)
Re: BUG #6619: Misleading output from slave when host is not running  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      6619
Logged by:          Petteri R=C3=A4ty
Email address:      petteri.raty@aalto.fi
PostgreSQL version: 9.1.3
Operating system:   Gentoo Linux
Description:=20=20=20=20=20=20=20=20

I setup a hot standby master and slave following instructions at:

http://michael.otacoo.com/postgresql-2/postgres-9-1-setup-a-synchronous-sta=
nd-by-server-in-5-minutes/

I left archive mode off.

When I started the slave without the master running I got the following
output:

$ postgres -D gsd-replica/
LOG:  database system was interrupted while in recovery at log time
2012-04-25 12:01:33 UTC
HINT:  If this has occurred more than once some data might be corrupted and
you might need to choose an earlier recovery target.
LOG:  entering standby mode
WARNING:  WAL was generated with wal_level=3Dminimal, data may be missing
HINT:  This happens if you temporarily set wal_level=3Dminimal without taki=
ng
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.
LOG:  startup process (PID 28761) exited with exit code 1
LOG:  aborting startup due to startup process failure

The error message above on the FATAL line is wrong (or at least misleading).
The real problem should be that it can't connect to the master. The
wal_level on the master is hot_standby (captured after I started it):


=3D# SHOW wal_level;
  wal_level=20=20
-------------
 hot_standby
(1 row)

pgsql-bugs by date:

Previous
From: Ryan Kelly
Date:
Subject: Re: hstore parser incorrectly handles malformed input
Next
From: Simon Riggs
Date:
Subject: Re: BUG #6619: Misleading output from slave when host is not running