pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Petteri Räty <petsku@petteriraty.eu>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7549: max_connections check should query master when starting standby
Date: Mon, 17 Sep 2012 17:05:36 -0700
Message-ID: <5057BAD0.109@petteriraty.eu> (raw)
In-Reply-To: <CAHGQGwE8D9QhK1f-=ExWkp3MjR4Hrpkf4Di5a_fi4Tr-8wnNAA@mail.gmail.com>
References: <E1TDgQA-0003l9-Hq@wrigleys.postgresql.org>
	<CAHGQGwE8D9QhK1f-=ExWkp3MjR4Hrpkf4Di5a_fi4Tr-8wnNAA@mail.gmail.com>

On 17.9.2012 16.57, Fujii Masao wrote:
> On Tue, Sep 18, 2012 at 3:51 AM,  <petsku@petteriraty.eu> wrote:
>> The following bug has been logged on the website:
>>
>> Bug reference:      7549
>> Logged by:          Petteri Räty
>> Email address:      petsku@petteriraty.eu
>> PostgreSQL version: 9.2.0
>> Operating system:   Linux or OS X
>> Description:
>>
>> On a streaming hot standby slave starting postgres:
>>
>>
>> LOG:  database system was interrupted while in recovery at log time
>> 2012-09-17 21:29:31 EEST
>> 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
>> FATAL:  hot standby is not possible because max_connections = 20 is a lower
>> setting than on the master server (its value was 100)
>> LOG:  startup process (PID 51494) exited with exit code 1
>> LOG:  aborting startup due to startup process failure
>>
>> It was indeed the case that the limit was lower on the slave but to resolve
>> it I lowered the setting on the master:
>>
>> postgres=# SHOW max_connections;
>>  max_connections
>> -----------------
>>  20
>> (1 row)
>>
>> The slave should allow resolving the issue by not only changes on the slave
>> side but by checking if the master has been updated as well.
> 
> If you change the max_connections on the master, you need to take a
> fresh backup from the master and start the standby from it.
> 
> Regards,
> 

If that's the case then would make sense to document it in connection to
the output. I wouldn't have guessed that to be the case.

Regards,
Petteri




view thread (8+ messages)  latest in thread

Message-ID: <5057BAD0.109@petteriraty.eu>
Permalink:  ../5057BAD0.109@petteriraty.eu/
Also on:    postgresql.org/message-id/5057BAD0.109@petteriraty.eu

 · 

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: petsku@petteriraty.eu, masao.fujii@gmail.com
  Subject: Re: BUG #7549: max_connections check should query master when starting standby
  In-Reply-To: <5057BAD0.109@petteriraty.eu>
  References: <E1TDgQA-0003l9-Hq@wrigleys.postgresql.org> <CAHGQGwE8D9QhK1f-=ExWkp3MjR4Hrpkf4Di5a_fi4Tr-8wnNAA@mail.gmail.com> <5057BAD0.109@petteriraty.eu>

* 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