pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Petteri Räty <petteri.raty@aalto.fi>
To: Simon Riggs <simon@2ndQuadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6619: Misleading output from slave when host is not running
Date: Sun, 29 Apr 2012 01:45:37 +0300
Message-ID: <4F9C7311.1030103@aalto.fi> (raw)
In-Reply-To: <CA+U5nMKRXCmD3ihSk5YxUHAbBQQ4cJzuPwVQWGJKBfQtonFM=Q@mail.gmail.com>
References: <E1SNfuA-0001O7-0C@wrigleys.postgresql.org>
	<CA+U5nMKRXCmD3ihSk5YxUHAbBQQ4cJzuPwVQWGJKBfQtonFM=Q@mail.gmail.com>

On 27.04.2012 17:16, Simon Riggs wrote:
> On Fri, Apr 27, 2012 at 8:47 AM,  <petteri.raty@aalto.fi> wrote:
> 
>> LOG:  entering standby mode
>> 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.
>> 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):
> 
> The HINT that we should simply set something on the master is a little
> misleading with respect to timing. However, if the master and the
> standby aren't even connected and you know that, how did you expect
> there to be a causal link between the setting on the master and the
> state of the standby?
> 

I started investigating after seeing that it didn't start up and found
that the master had a firewall preventing from connecting to the port
where I had setup postgres to listen.

>
> What do you suggest the messages say?
> 

If the slave had no way to connect to the master then how can the slave
tell how "hot_standby" is configured there? I am expecting the message
to tell me that it can't connect to the master.

Regards,
Petteri



view thread (4+ messages)

Message-ID: <4F9C7311.1030103@aalto.fi>
Permalink:  ../4F9C7311.1030103@aalto.fi/
Also on:    postgresql.org/message-id/4F9C7311.1030103@aalto.fi

 · 

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: petteri.raty@aalto.fi, simon@2ndQuadrant.com
  Subject: Re: BUG #6619: Misleading output from slave when host is not running
  In-Reply-To: <4F9C7311.1030103@aalto.fi>
  References: <E1SNfuA-0001O7-0C@wrigleys.postgresql.org> <CA+U5nMKRXCmD3ihSk5YxUHAbBQQ4cJzuPwVQWGJKBfQtonFM=Q@mail.gmail.com> <4F9C7311.1030103@aalto.fi>

* 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