Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDgQC-0002tv-KK for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 18:51:52 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDgQB-0003ex-J3 for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 18:51:52 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDgQA-0002Lc-RR for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 18:51:51 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TDgQA-0003l9-Hq for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 18:51:50 +0000 Date: Mon, 17 Sep 2012 18:51:50 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7549: max_connections check should query master when starting standby To: pgsql-bugs@postgresql.org From: petsku@petteriraty.eu X-Pg-Spam-Score: -2.4 (--) X-Archive-Number: 201209/170 X-Sequence-Number: 34165 The following bug has been logged on the website: Bug reference: 7549 Logged by: Petteri R=C3=A4ty 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 =3D 20 is a low= er 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=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. Regards, Petteri