Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3hjH-0002HY-6F for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Feb 2013 06:46:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U3hjF-0005X6-KM for pgsql-bugs@arkaria.postgresql.org; Fri, 08 Feb 2013 06:46:33 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3hjF-0005X1-26 for pgsql-bugs@postgresql.org; Fri, 08 Feb 2013 06:46:33 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3hjC-000167-QY for pgsql-bugs@postgresql.org; Fri, 08 Feb 2013 06:46:32 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3hjB-0001UR-87 for pgsql-bugs@postgresql.org; Fri, 08 Feb 2013 06:46:29 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1U3hjB-0007yL-0Y for pgsql-bugs@postgresql.org; Fri, 08 Feb 2013 06:46:29 +0000 Date: Fri, 08 Feb 2013 06:46:29 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7858: Inaccurate Log Message To: pgsql-bugs@postgresql.org From: jackie.qq.zhang@gmail.com X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7858 Logged by: Jackie Zhang Email address: jackie.qq.zhang@gmail.com PostgreSQL version: 9.1.4 Operating system: Ubuntu Description:=20=20=20=20=20=20=20=20 Hi, The log message of the sanity check for "superuser_reserved_connections" in PostmasterMain() is not accurate. See the following code snippet: /*src/backend/postmaster/postmaster.c*/ 730 /* 731 * Check for invalid combinations of GUC settings. 732 */ 733 if (ReservedBackends >=3D MaxBackends) 734 { 735 write_stderr("%s: superuser_reserved_connections must be less than max_connections\n", progname); 736 ExitPostmaster(1); 737 } The problem is that "MaxBackends" is calculated by both "autovacuum_max_workers" and "max_connections". See assign_maxconnections() and assign_autovacuum_max_workers() in src/backend/utils/misc/guc.c. The log message should inform both the two configuration parameters instead of only one -- the root cause could be the oversized "autovacuum_max_workers". Thanks, Jackie --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs