Re: Timezone: resolve $TZDIR in runtime

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: zarkonesmall(at)gmail(dot)com
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Timezone: resolve $TZDIR in runtime
Date: 2024-10-21 17:59:36
Message-ID: 1633229.1729533576@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Anatolii Smolianinov <zarkonesmall(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Anatolii Smolianinov 2024-10-21 18:06:37 Re: Timezone: resolve $TZDIR in runtime
Previous Message Gianni Ceccarelli 2024-10-21 17:26:15 Re: Timezone: resolve $TZDIR in runtime