Re: Alter system and reload causes bogus complaints about setting changes

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
Cc: pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Alter system and reload causes bogus complaints about setting changes
Date: 2014-07-03 16:57:01
Message-ID: CAA4eK1K0LEfQ4xdS+t7gLAVvdw_2gu7XZz_PAVCmDO0L81h28Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Jul 3, 2014 at 2:46 PM, Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
wrote:
>
> Hi all, playing with 9.4 beta:
>
> Consider:
>
> $ cat config.sql
> ALTER SYSTEM SET max_connections = 200;
> ALTER SYSTEM SET shared_buffers = "10GB";
>
> $ psql < config.sql
>
> $ service postgresql restart
>
> $ psql
> ALTER SYSTEM SET checkpoint_segments = 384;
> \q
>
> $ service postgresql reload
>
> $ tail /var/log/postgresql/postgresql-9.4-main.log
> 2014-07-03 08:09:40 AST LOG: received SIGHUP, reloading configuration
files
> 2014-07-03 08:09:40 AST LOG: parameter "max_connections" cannot be
changed without restarting the server
> 2014-07-03 08:09:40 AST LOG: parameter "shared_buffers" cannot be
changed without restarting the server
> 2014-07-03 08:09:40 AST LOG: parameter "checkpoint_segments" changed to
"1920"
> 2014-07-03 08:09:40 AST LOG: configuration file
"/etc/postgresql/9.4/main/postgresql.conf" contains errors; unaffected
changes were applied
>
>
> Hmmm - I didn't actually change the settings it is complaining
about...and it is referring to the wrong file too. While this is hardly
serious, it is likely to be immensely confusing for folk who have not been
actively following the new changes for 9.4 (ahem...that could be a lot of
people). It would be good to fix this before we end beta.

This issue occurs mainly due to duplicate settings in postgresql.conf
and postgresql.auto.conf (file where ALTER SYSTEM writes). I have
explained it in more detail in the below thread:

http://www.postgresql.org/message-id/CAA4eK1+mUTjc=GXJK3bYtSwV2BmBni=PHEvBqLQkhdUV9cWd1A@mail.gmail.com

With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Greg Stark 2014-07-03 18:54:53 Re: BUG #10847: Connection.setSavepoint()/releaseSavepoint() is not thread-safe
Previous Message Jacek Mazurek 2014-07-03 11:45:46 unattended install error