Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJXoK-0001Z6-64 for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Sep 2013 23:57:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VJXoJ-00037A-Ku for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Sep 2013 23:57:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJXoI-000373-Ol for pgsql-bugs@postgresql.org; Tue, 10 Sep 2013 23:57:30 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJXoB-000190-8V for pgsql-bugs@postgresql.org; Tue, 10 Sep 2013 23:57:30 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1VJXo9-00010x-Vm; Tue, 10 Sep 2013 19:57:21 -0400 Date: Tue, 10 Sep 2013 19:57:21 -0400 From: Bruce Momjian To: jackie.qq.zhang@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7858: Inaccurate Log Message Message-ID: <20130910235721.GJ16378@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) 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 On Fri, Feb 8, 2013 at 06:46:29AM +0000, jackie.qq.zhang@gmail.com wrote: > 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: > > 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 >= 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". The calculation, ReservedBackends >= MaxBackends, was corrected in Postgres 9.3 with this commit: commit b3055ab4fb5839a872bfe354b2b5ac31e6903ed6 Author: Magnus Hagander Date: Fri Aug 10 14:49:03 2012 +0200 Fix upper limit of superuser_reserved_connections, add limit for wal_senders Should be limited to the maximum number of connections excluding autovacuum workers, not including. Add similar check for max_wal_senders, which should never be higher than max_connections. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs