From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Aleksander Alekseev <aleksander(at)timescale(dot)com> |
Cc: | "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Chris BSomething <xpusostomos(at)gmail(dot)com> |
Subject: | Re: Inconsistency of timezones in postgresql |
Date: | 2024-07-31 12:31:39 |
Message-ID: | CAKFQuwZ3boZGw2QCuasRnhu0B_3+_SJ7f9ZG8DsWifPkhsVKAw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Wednesday, July 31, 2024, Aleksander Alekseev <aleksander(at)timescale(dot)com>
wrote:
> Hi,
>
> > So I basically wasted a day's work trying to figure out what was going
> on, with queries like this:
> >
> > select change_time at time zone 'UTC+10' from mytable;
> >
> > and getting nonsense [...]
>
> I couldn't understand the bug report at first. Apparently the
> complaint is about the following behavior:
>
> Same for AT TIME ZONE 'UTC+3' | 'GMT+3' | 'Z+3'. I agree this is
> inconsistent and counterintuitive. On the flip side changing this
> behavior would mean breaking backward compatibility.
>
> Maybe we could come up with a good name for a function that would
> replace timezone() and recommend using it instead.
>
The bug is about the discoverability and imparting of the knowledge that
resides in our appendix regarding the fact that some timezone names map to
POSIX and while others map to ISO.
Our present behavior is to impart this knowledge at. Data types, date/time,
Timezones:
https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-TIMEZONES
and elsewhere in the documentation do not address this aspect of time.
I’d be content with maybe promoting the third item on that subsection to a
warning…but I don’t really see us mentioning this more broadly than this
definitional section.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Chris BSomething | 2024-07-31 12:35:03 | Re: Inconsistency of timezones in postgresql |
Previous Message | Aleksander Alekseev | 2024-07-31 11:50:23 | Re: Inconsistency of timezones in postgresql |