From: Justin Cranford <justincranford@hotmail.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: DateStyle ignored in postgresql.conf during 9.5 start?
Date: Fri, 27 May 2016 11:33:51 -0400
Message-ID: <BAY174-W275AF4658071F463A87185D1420@phx.gbl> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
I can set DateStyle='ISO, YMD' in postgresql.conf in PostgreSQL 9.3 and 9.4, but not in PostgreSQL 9.5. The DateStyle setting seems to be ignored during server startup, but only in 9.5. I made other changes to postgresql.conf which were applied, so it is only affecting the DateStyle setting. I am using 9.5.3-1 x64 on Windows 7 x64 and it is reproducible.
To confirm the issue, I set DateStyle in postgresql.conf in 9.3, 9.4, and 9.5 on separate machines:
#Excerpt From postgresql.confDateStyle = 'ISO, YMD'
On the machines running PostgreSQL 9.3 and 9.4, I restart, connect with psql, and execute "SHOW DateStyle". It shows the value I set in postgresql.conf:
postgres=# SHOW DateStyle; DateStyle----------- ISO, YMD(1 row)
On the machine running PostgreSQL 9.5, I restart, connect with psql, and execute "SHOW DateStyle". It shows the default value, not the value I set in postgresql.conf:
postgres=# SHOW DateStyle; DateStyle----------- ISO, MDY(1 row)
In 9.5, I am able to set DateStyle via psql and it works. So, the DateStyle value is only being ignored from postgresql.conf.
postgres=# set DateStyle='ISO, YMD';SETpostgres=# SHOW DateStyle; DateStyle----------- ISO, YMD(1 row)
In summary, the issue is PostgreSQL 9.5 ignores my DateStyle setting in postgresql.conf during startup.
Is this is a regression bug in 9.5, or a functionality change? Is there a workaround?
Thank you,Justin Cranford
=
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: justincranford@hotmail.com
Subject: Re: DateStyle ignored in postgresql.conf during 9.5 start?
In-Reply-To: <BAY174-W275AF4658071F463A87185D1420@phx.gbl>
References: <BAY174-W275AF4658071F463A87185D1420@phx.gbl>
* 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