pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jackie.qq.zhang@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7858: Inaccurate Log Message
Date: Fri, 08 Feb 2013 06:46:29 +0000
Message-ID: <E1U3hjB-0007yL-0Y@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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".

Thanks,
Jackie





-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)  latest in thread

Message-ID: <E1U3hjB-0007yL-0Y@wrigleys.postgresql.org>
Permalink:  ../E1U3hjB-0007yL-0Y@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1U3hjB-0007yL-0Y@wrigleys.postgresql.org

 · 

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: jackie.qq.zhang@gmail.com
  Subject: Re: BUG #7858: Inaccurate Log Message
  In-Reply-To: <E1U3hjB-0007yL-0Y@wrigleys.postgresql.org>
  References: <E1U3hjB-0007yL-0Y@wrigleys.postgresql.org>

* 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