From: vindrg@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #12828: False positive "parameter shared_buffers cannot be changed" error
Date: Wed, 04 Mar 2015 19:50:28 +0000
Message-ID: <20150304195028.2544.21499@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: 12828
Logged by: Vincas Dargis
Email address: vindrg@gmail.com
PostgreSQL version: 9.4.1
Operating system: Debian Wheezy amd64
Description:
To reproduce:
Install postgresql-9.4 from pgdg repository.
Check (default) shared buffers size:
su - postgres -c "psql -c 'show shared_buffers' postgres"
shared_buffers
----------------
128MB
(1 row)
Edit /etc/postgresql/9.4/main/postgresql.conf to add line at the end of
file:
include = 'custom.postgresql.conf'
Create file /etc/postgresql/9.4/main/custom.postgresql.conf with single
line:
shared_buffers = 256MB
Now, restart:
service postgresql restart
And check if shared_buffers have changed (yes it is):
su - postgres -c "psql -c 'show shared_buffers' postgres"
shared_buffers
----------------
256MB
(1 row)
But now, we ask to reload configuration without doing any more config
changes:
service postgresql reload
Then in file /var/log/postgresql/postgresql-9.4-main.log these lines
appears:
2015-03-04 21:39:27 EET [5290-2] LOG: received SIGHUP, reloading
configuration files
2015-03-04 21:39:27 EET [5290-3] LOG: parameter "shared_buffers" cannot be
changed without restarting the server
2015-03-04 21:39:27 EET [5290-4] LOG: configuration file
"/etc/postgresql/9.4/main/postgresql.conf" contains errors; unaffected
changes were applied
It warns that shared_buffers cannot be changed without restart, but there is
nothing to change, it's already 256MB as it where since the start of the
cluster!
So, "configuration file "X" contains errors" is a false positive.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: vindrg@gmail.com
Subject: Re: BUG #12828: False positive "parameter shared_buffers cannot be changed" error
In-Reply-To: <20150304195028.2544.21499@wrigleys.postgresql.org>
References: <20150304195028.2544.21499@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