From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: dafoer_x@163.com
Subject: BUG #17366: Error result returned in timestamp2timestamptz, expected to be off by one hour
Date: Fri, 14 Jan 2022 04:06:42 +0000
Message-ID: <17366-8744a901d10fd9d1@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 17366
Logged by: Error result returned in timestamp2timestamptz, expected to be off by one
hour
Email address: dafoer_x@163.com
PostgreSQL version: 14.1
Operating system: REL_14_STABLE
Description:
For REL_14_STABLE
git log ad5b6f248ab288c3252d8122d12a1eb410d4a0b6
e.g.
postgres=# set timezone to "PST8PDT";
SET
postgres=# select * from pg_timezone_names where name = 'PST8PDT';
name | abbrev | utc_offset | is_dst
---------+--------+------------+--------
PST8PDT | PST | -08:00:00 | f
(1 row)
postgres=# select (timestamp '2021-03-14 02:00:00')::timestamptz;
timestamptz
------------------------
2021-03-14 03:00:00-07
(1 row)
postgres=# select (timestamp '2021-03-14 03:00:00')::timestamptz;
timestamptz
------------------------
2021-03-14 03:00:00-07
(1 row)
expected:
postgres=# select (timestamp '2021-03-14 02:00:00')::timestamptz;
2021-03-14 02:00:00-07
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, dafoer_x@163.com
Subject: Re: BUG #17366: Error result returned in timestamp2timestamptz, expected to be off by one hour
In-Reply-To: <17366-8744a901d10fd9d1@postgresql.org>
* 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