Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDlKG-0007UD-Fb for pgsql-bugs@postgresql.org; Tue, 18 Sep 2012 00:06:04 +0000 Received: from petteriraty.eu ([188.40.80.83]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDlKD-0004X0-BA for pgsql-bugs@postgresql.org; Tue, 18 Sep 2012 00:06:03 +0000 Received: from Petteri-Ratys-MacBook-Pro.local (unknown [198.134.91.244]) by petteriraty.eu (Postfix) with ESMTPSA id A179138A32; Tue, 18 Sep 2012 00:05:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=petteriraty.eu; s=petteriraty.eu; t=1347926759; bh=7W+BPrmunVlDqIauZ0Y7cKc73QVTLC7rIBUCMZXOB1w=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=IK7Av7vygBXgfJR76/ifZaQeF1j1wh/ktsjA9Aj1tyb9qJ/nyGJt0vrUP8an3vqQW PMIMqmCXnGl8Ff3o7nYIjVxwp0yv+cjo4OvjZ63rTy49j271EMBIEFqLH/ENKiRX9S usdXMURYe+ScwH0qQKXKN74rqFooakRs+PwwsBsw= Message-ID: <5057BAD0.109@petteriraty.eu> Date: Mon, 17 Sep 2012 17:05:36 -0700 From: =?ISO-8859-1?Q?Petteri_R=E4ty?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: Fujii Masao CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7549: max_connections check should query master when starting standby References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201209/174 X-Sequence-Number: 34169 On 17.9.2012 16.57, Fujii Masao wrote: > On Tue, Sep 18, 2012 at 3:51 AM, wrote: >> The following bug has been logged on the website: >> >> Bug reference: 7549 >> Logged by: Petteri R=E4ty >> 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 corrupte= d and >> you might need to choose an earlier recovery target. >> LOG: entering standby mode >> FATAL: hot standby is not possible because max_connections =3D 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 re= solve >> it I lowered the setting on the master: >> >> postgres=3D# 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. >=20 > 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. >=20 > Regards, >=20 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