Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTFK1-0001Gp-JL for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Mar 2015 19:51:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YTFK0-0001iW-Mn for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Mar 2015 19:51:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YTFJz-0001iI-Pt for pgsql-bugs@postgresql.org; Wed, 04 Mar 2015 19:51:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTFJw-0001ry-3d for pgsql-bugs@postgresql.org; Wed, 04 Mar 2015 19:51:06 +0000 MIME-Version: 1.0 Subject: BUG #12828: False positive "parameter shared_buffers cannot be changed" error To: pgsql-bugs@postgresql.org From: vindrg@gmail.com Date: Wed, 04 Mar 2015 19:50:28 +0000 Message-ID: <20150304195028.2544.21499@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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