Skip site navigation (1) Skip section navigation (2)

[PATCH] Don't bail with legitimate -N/-B options

From: Andreas Kling <andreas(dot)kling(at)acgnystrom(dot)se>
To: pgsql-bugs(at)postgresql(dot)org
Subject: [PATCH] Don't bail with legitimate -N/-B options
Date: 2008-02-16 17:11:14
Message-ID: 47B71932.5060104@acgnystrom.se (view raw or flat)
Thread:
Lists: pgsql-bugs
Greetings,

Starting PostgreSQL 8.3.0 with the default options used by Gentoo Linux 
(-N 40 -B 80) causes it to bail with an error message.

"the number of buffers (-B) must be at least twice the number of allowed 
connections (-N) and at least 16"

The problem is that NBuffers is actually "max autovacuum connections" + 
NBuffers.

My attached patch fixes this by adding "max autovacuum connections" * 2 
to NBuffers before the check.

Best regards,
Andreas Kling
ACG Nyström AB

Attachment: postgresql-8.3.0-nbuffers-for-autovacuum.patch
Description: text/x-patch (527 bytes)

Responses

pgsql-bugs by date

Next:From: Magnus HaganderDate: 2008-02-16 21:09:10
Subject: Re: [PATCH] Don't bail with legitimate -N/-B options
Previous:From: Peter KovacsDate: 2008-02-16 15:20:35
Subject: Re: configure warnings

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group