From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Cc: | nicola(dot)oricchio(at)vertigis(dot)com |
Subject: | BUG #18518: ::timestamp add minutes and seconds to the converted values |
Date: | 2024-06-20 15:33:29 |
Message-ID: | 18518-e16f6cc69c9ce413@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 18518
Logged by: Nicola Oricchio
Email address: nicola(dot)oricchio(at)vertigis(dot)com
PostgreSQL version: 12.18
Operating system: Ubuntu
Description:
repro:
create table aaa (dat timestamp without time zone);
insert into aaa values ('1892-12-31 23:00:00');
insert into aaa values ('1893-12-31 23:00:00');
insert into aaa values ('1992-12-31 13:33:12');
select dat, (dat at time zone 'utc')::timestamp without time zone from aaa
order by 1;
output:
dat | timezone
---------------------+---------------------
1892-12-31 23:00:00 | 1893-12-31 23:53:28 <-- it should be 1893-01-01
00:00:00
1893-12-31 23:00:00 | 1894-01-01 00:00:00
1992-12-31 13:33:12 | 1992-12-31 14:33:12
it works correctly with 12.2
dat | timezone
---------------------+---------------------
1892-12-31 23:00:00 | 1893-01-01 00:00:00
1893-12-31 23:00:00 | 1894-01-01 00:00:00
1992-12-31 13:33:12 | 1992-12-31 14:33:12
time zone is CET
From | Date | Subject | |
---|---|---|---|
Next Message | Melanie Plageman | 2024-06-20 15:49:50 | Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae |
Previous Message | Mujjamil k | 2024-06-20 13:31:02 | Re: BUG #18516: Foreign key data integrity is not validated when reenabled the trigger on tables |