Re: IANA timezone abbreviations versus timezone_abbreviations
От
Jelte Fennema-Nio
Тема
Re: IANA timezone abbreviations versus timezone_abbreviations
Дата
Msg-id
D6OJLXL5NZXM.2O73AJMU6DWYV@jeltef.nl
Ответ на
Re: IANA timezone abbreviations versus timezone_abbreviations (Bruce Momjian)
Список
Дерево обсуждения
IANA timezone abbreviations versus timezone_abbreviations Tom Lane <tgl@sss.pgh.pa.us>
Re: IANA timezone abbreviations versus timezone_abbreviations Andreas Karlsson <andreas@proxel.se>
Re: IANA timezone abbreviations versus timezone_abbreviations Tom Lane <tgl@sss.pgh.pa.us>
Re: IANA timezone abbreviations versus timezone_abbreviations "Jelte Fennema-Nio" <postgres@jeltef.nl>
Re: IANA timezone abbreviations versus timezone_abbreviations "Jelte Fennema-Nio" <postgres@jeltef.nl>
Re: IANA timezone abbreviations versus timezone_abbreviations Bruce Momjian <bruce@momjian.us>
Re: IANA timezone abbreviations versus timezone_abbreviations "Jelte Fennema-Nio" <postgres@jeltef.nl>
Re: IANA timezone abbreviations versus timezone_abbreviations Tom Lane <tgl@sss.pgh.pa.us>
Re: IANA timezone abbreviations versus timezone_abbreviations "Jelte Fennema-Nio" <postgres@jeltef.nl>
Re: IANA timezone abbreviations versus timezone_abbreviations Tom Lane <tgl@sss.pgh.pa.us>
Re: IANA timezone abbreviations versus timezone_abbreviations Aleksander Alekseev <aleksander@timescale.com>
Re: IANA timezone abbreviations versus timezone_abbreviations Tom Lane <tgl@sss.pgh.pa.us>
Re: IANA timezone abbreviations versus timezone_abbreviations Tom Lane <tgl@sss.pgh.pa.us>
Re: IANA timezone abbreviations versus timezone_abbreviations Tom Lane <tgl@sss.pgh.pa.us>
On Sun Dec 29, 2024 at 12:47 AM CET, Bruce Momjian wrote: > On Mon, Dec 16, 2024 at 02:57:59PM -0500, Tom Lane wrote: > Yes, your patch seems like a big improvement. +1 + Before consulting the timezone_abbreviations file, + PostgreSQL checks to see whether an + abbreviation used in datetime input is defined in the IANA time zone + database entry currently selected by the + run-time parameter. If so the time + zone's meaning is used, for consistency with datetime output. The + timezone_abbreviations file is mainly useful for + allowing datetime input to recognize abbreviations for time zones + other than the active zone. I think it would be good to add some additional clarify here. It was fairly confusing to me. Especially the last sentence, due to the use of "active zone", even though it's really talking about the currently active abbreviations list. Probably my confusion mostly came from the fact that I wasn't aware that timezone abbreviations were localized, but I doubt I'm alone in not knowing this. Maybe something like this (feel free to improve further): Before consulting the timezone_abbreviations file, PostgreSQL checks to see whether an abbreviation used in datetime input is defined in the currently active IANA time zone database. The abbreviations for these entries are localized based on the run-time parameter, so depending on the configured abbreviations will differ. If it is found the IANA time zone database, then that meaning is used for consistency with datetime output. The timezone_abbreviations file is only useful for allowing datetime input to recognize abbreviations for time zones that are not defined in the currently active IANA time zone database.
В списке pgsql-hackers по дате отправления
От: Jelte Fennema-Nio
Дата: