Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6JsK-0002Jp-3E for pgsql-bugs@arkaria.postgresql.org; Fri, 27 May 2016 15:40:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6JsJ-00033a-Iq for pgsql-bugs@arkaria.postgresql.org; Fri, 27 May 2016 15:40:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6Jlz-00014g-JJ for pgsql-bugs@postgresql.org; Fri, 27 May 2016 15:34:03 +0000 Received: from bay004-omc1s28.hotmail.com ([65.54.190.39]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6Jlr-0002sE-6E for pgsql-bugs@postgresql.org; Fri, 27 May 2016 15:34:03 +0000 Received: from BAY174-W27 ([65.54.190.59]) by BAY004-OMC1S28.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 27 May 2016 08:33:52 -0700 X-TMN: [zTD9jFYpeFIn54JilfBVQQTahj8uSdvWYCGN3pXIqe0=] X-Originating-Email: [justincranford@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_3c78b91d-a705-4a6a-a8d5-e57489a8ee5e_" From: Justin Cranford To: "pgsql-bugs@postgresql.org" Subject: DateStyle ignored in postgresql.conf during 9.5 start? Date: Fri, 27 May 2016 11:33:51 -0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 27 May 2016 15:33:52.0252 (UTC) FILETIME=[2C0CA3C0:01D1B82D] X-Pg-Spam-Score: -4.0 (----) 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 --_3c78b91d-a705-4a6a-a8d5-e57489a8ee5e_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I can set DateStyle=3D'ISO=2C YMD' in postgresql.conf in PostgreSQL 9.3 and= 9.4=2C but not in PostgreSQL 9.5. The DateStyle setting seems to be ignore= d during server startup=2C but only in 9.5. I made other changes to postgre= sql.conf which were applied=2C so it is only affecting the DateStyle settin= g. I am using 9.5.3-1 x64 on Windows 7 x64 and it is reproducible. To confirm the issue=2C I set DateStyle in postgresql.conf in 9.3=2C 9.4=2C= and 9.5 on separate machines: #Excerpt From postgresql.confDateStyle =3D 'ISO=2C YMD' On the machines running PostgreSQL 9.3 and 9.4=2C I restart=2C connect with= psql=2C and execute "SHOW DateStyle". It shows the value I set in postgres= ql.conf: postgres=3D# SHOW DateStyle=3B DateStyle----------- ISO=2C YMD(1 row) On the machine running PostgreSQL 9.5=2C I restart=2C connect with psql=2C = and execute "SHOW DateStyle". It shows the default value=2C not the value I= set in postgresql.conf: postgres=3D# SHOW DateStyle=3B DateStyle----------- ISO=2C MDY(1 row) In 9.5=2C I am able to set DateStyle via psql and it works. So=2C the DateS= tyle value is only being ignored from postgresql.conf. postgres=3D# set DateStyle=3D'ISO=2C YMD'=3BSETpostgres=3D# SHOW DateStyle= =3B DateStyle----------- ISO=2C YMD(1 row) In summary=2C the issue is PostgreSQL 9.5 ignores my DateStyle setting in p= ostgresql.conf during startup. Is this is a regression bug in 9.5=2C or a functionality change? Is there a= workaround? Thank you=2CJustin Cranford = --_3c78b91d-a705-4a6a-a8d5-e57489a8ee5e_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=2C

I can set DateStyle=3D'ISO=2C YMD' =3Bin postgresql.conf in PostgreSQL 9.3 and 9.4=2C but= not in PostgreSQL 9.5. The DateStyle setting seems to be ignored during se= rver startup=2C but only in 9.5. I made other changes to postgresql.conf wh= ich were applied=2C so it is only affecting the DateStyle setting. I am usi= ng 9.5.3-1 x64 on Windows 7 x64 and it is reproducible.

To confirm the issue=2C I set =3BDateStyle in postgresql.conf in 9.3=2C 9.4=2C and 9.5 on= separate machines:
#Excerpt From postgresql.conf
Date= Style =3D 'ISO=2C YMD'

On the machines running PostgreSQL 9.3 and 9.4=2C I re= start=2C connect with psql=2C and execute =3B"SHOW DateStyle". It shows the value I set in postgresql.co= nf:

<= div>
postgres=3D# SHOW DateStyle=3B
&nb= sp=3BDateStyle
-----------
 = =3BISO=2C YMD
(1 row)
On the machin= e running PostgreSQL 9.5=2C I restart=2C connect with psql=2C and execute&n= bsp=3B"SHOW DateStyle". It shows = the default value=2C not the value I set in postgresql.conf:

<= div>
postgres=3D# SHOW DateStyle=3B
&nb= sp=3BDateStyle
-----------
 = =3BISO=2C MDY
(1 row)

In 9.5=2C I am able to set DateStyle via psql an= d it works. So=2C the =3BDateStyle =3Bvalue is only being ignored from postgresql.conf.

postgres=3D# set DateStyle=3D'ISO=2C YMD'= =3B
SET
postgres=3D# SHOW D= ateStyle=3B
 =3BDateStyle
---= --------
 =3BISO=2C YMD
(1 ro= w)


In summary=2C= the issue is PostgreSQL 9.5 ignores my DateStyle setting in postgresql.con= f during startup.

Is this is a regression bug in 9= .5=2C or a functionality change? Is there a workaround?

Thank you=2C
Justin Cranford


= --_3c78b91d-a705-4a6a-a8d5-e57489a8ee5e_--