Re: Timezone: resolve $TZDIR in runtime

Поиск
Список
Период
Сортировка
От Anatolii Smolianinov
Тема Re: Timezone: resolve $TZDIR in runtime
Дата
Msg-id CABvPt_z6YG9O2JEVpS30L80=MmH-dwe_B119Lt4xzUcU9rb2eQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Timezone: resolve $TZDIR in runtime  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Ah, I see -- so tzselect uses tzdb distribution too? it is just, tzselect can alter the timezone database and it looks for TZDIR in some distributions, however, it is not the source of truth in that sense. I think I see now why it's not really feasible to make such an adjustment..

Thanks for your help!

On Mon, Oct 21, 2024 at 7:59 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Anatolii Smolianinov <zarkonesmall@gmail.com> writes:
> Right, it is not an official standard, but TZDIR appears in tzselect, which
> comes from GNU libc.  https://www.unix.com/man-page/redhat/8/TZSELECT/

No, it comes from the tzdb distribution, which otherwise hard-wires
a compile-time choice for that directory.  Which is how come no other
program responds to that environment variable.  So if anything, that's
precedent for our behavior.

                        regards, tom lane

В списке pgsql-general по дате отправления: