X-Original-To: pgsql-admin@postgresql.org Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-122.pit.adelphia.net [24.53.161.122]) by postgresql.org (Postfix) with ESMTP id 5FB82474E4F for ; Thu, 20 Mar 2003 10:28:29 -0500 (EST) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.7/8.12.7) with ESMTP id h2KFSXJP000968; Thu, 20 Mar 2003 10:28:33 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E79DDCD.7080104@potentialtech.com> Date: Thu, 20 Mar 2003 10:27:09 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030301 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: pgsql-admin@postgresql.org Subject: Re: Problems tuning shared_buffers value References: <3E79BCEB.6090807@potentialtech.com> <23270.1048173252@sss.pgh.pa.us> In-Reply-To: <23270.1048173252@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200303/325 X-Sequence-Number: 7965 Tom Lane wrote: > Bill Moran writes: > >>curious about some things, so I set shared_buffers to 16 (which the >>config file claims is the lowest allowable value) The result was >>that Postgre refused to start. I upped it to 32 and the result >>was the same. >>I looked in both /var/log/messages and in /usr/local/pgsql/logfile >>and found nothing about _why_ it wouldn't start, > > > There's something broken about your logging setup then, because the > postmaster will most definitely tell you why it's not starting: > > $ postmaster -B 16 > postmaster: The number of buffers (-B) must be at least twice the number of allowed connections (-N) and at least 16. > $ postmaster -B 32 > postmaster: The number of buffers (-B) must be at least twice the number of allowed connections (-N) and at least 16. > $ > > Without having looked at the code, I think that these very-early-startup > messages may only get sent to stderr and not syslog; so take another > look at what you're doing with the postmaster's stderr. Ahhhh ... The startup script that the FreeBSD ports install redirects it to /var/log/pgsql, which I hadn't noticed. And I see the exact error messages you describe. Thanks, Tom. -- Bill Moran Potential Technologies http://www.potentialtech.com