datestyle=postgres broken with timezone=UTC+N - Mailing list pgsql-hackers

From Christoph Berg
Subject datestyle=postgres broken with timezone=UTC+N
Date
Msg-id 20150830102944.GA6531@msg.df7cb.de
Whole thread Raw
Responses Re: datestyle=postgres broken with timezone=UTC+N  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Discovered when debugging libpqtypes test failures:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795729

postgres =# set timezone = 'Etc/UTC+1';
SET
postgres =# set datestyle = 'postgres';
SET
postgres =# select '2015-01-01 01:00:00 +0100'::timestamptz;Wed 31 Dec 23:00:00 2014 ETC/UTC

postgres =# select 'Wed 31 Dec 23:00:00 2014 ETC/UTC'::timestamptz;Wed 31 Dec 22:00:00 2014 ETC/UTC


That is, feeding back a value will to the UTC offset shift again.
(9.6 head, also seen on 9.4.)

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: On-demand running query plans using auto_explain and signals
Next
From: Christoph Berg
Date:
Subject: Re: 9.4 broken on alpha