Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2wnw-008rWB-Ej for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2024 18:06:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t2wnt-00A838-Tv for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2024 18:06:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2wnt-00A830-HZ for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2024 18:06:53 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t2wnr-002396-3q for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2024 18:06:52 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-539fe02c386so5730913e87.0 for ; Mon, 21 Oct 2024 11:06:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729534009; x=1730138809; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yen9dMBFFU7yLlwb2Q+ho/dvK7z1wQbeS6B/yZm2aFw=; b=IdiRayfEb7jwmQ3k2kRj1qVS0ryRKcUtG6IM4RcTKRM1eppcewX2GLIHyIGgTyBrQv YOwFk4AKOv7UvXJ3Z4JgulHkHaFEmvFn0sgUxOq7gA8VmzJGp3UkNBDeAIYBcZkcLyVO QVXfKfrvKTMEXL3zixQhFYjNkOLW2sU9AELzQdUDdFZwSEiDU6rebXRRtEdyQCSJmoQY QxGPvTlEP0Dl199PP5v43gqqHknfzkEpNCrcGQC+OEfiRRAu//nADVgKV3v/m/tU0UM3 aapEDx+1TXKrG33lkrhI1nucPy4Mt676B0nOju5E5705HDu18QtZAsG+TAFqenKhcyRd U3aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729534009; x=1730138809; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yen9dMBFFU7yLlwb2Q+ho/dvK7z1wQbeS6B/yZm2aFw=; b=DsPDt/ax3g1V8ZhscgVTBHQ//5Axdk4uMuxhT0JPGem8cOYdokeUOZmu2QKJkHa3W9 fgTFZyNI6XU/dpTnMfiaLMIRxDx2VMFrp/wRfB84Gp9r37sS4p5bw9q3f6hAHT7zW57h lXMmtYFq1133pwpXyVSh6WlLoMthQeOuk5xBetpJUx1QX+zhPAu4jA89vnpKkZSMd+u3 hmW5lHybrnGnHbPmBtO4x4yQtC5u+/GaDuY/oXTV7YswNBk2+IucUn5YmniI2ACto1Au aBelbz8EgjPAE2LM+WPkeZZRPRLO663xiFSTDzB3Ggq5u5H1XIB46br06wLU7SwfMh9P Xjvg== X-Forwarded-Encrypted: i=1; AJvYcCVLIfJAc3yk/ouhd/M/mlmpAIi5T0GRFSwLaqRl4LRqLQPrigQsC3M3/2qw9CFyjiDKIa8JYLpofR21MBwN@lists.postgresql.org X-Gm-Message-State: AOJu0Yw4NUVLsTBYNWp1+s0D/rR90L5Y8YkIwwB9Z2ngnRhUYbtN/cWS Dc+pb6JtZmOK6QuAwu0lATsmfTvElHU2eWxUQRd/Zh38u8sio25HE5VuqFZBQDbClAxAG4cFH67 1CvXfjk/QuVS0IxEuWGD1t66ZkQs9yA== X-Google-Smtp-Source: AGHT+IGDwiXDbQp01fGjvt2UKp+H6iYVF7A5zKLsU9WevLXM7GVnHOpRRsYcTz2dSnfUmoqth4AXPriTBpk+Ett1GG8= X-Received: by 2002:a05:6512:1302:b0:539:f1d2:725b with SMTP id 2adb3069b0e04-53b1315533amr160981e87.4.1729534009086; Mon, 21 Oct 2024 11:06:49 -0700 (PDT) MIME-Version: 1.0 References: <1554256.1729521467@sss.pgh.pa.us> <1569732.1729527394@sss.pgh.pa.us> <1633229.1729533576@sss.pgh.pa.us> In-Reply-To: <1633229.1729533576@sss.pgh.pa.us> Reply-To: zarkonesmall@gmail.com From: Anatolii Smolianinov Date: Mon, 21 Oct 2024 20:06:37 +0200 Message-ID: Subject: Re: Timezone: resolve $TZDIR in runtime To: Tom Lane Cc: Adrian Klaver , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000003d1e5206250084cb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003d1e5206250084cb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=AFPM Tom Lane wrote: > Anatolii Smolianinov 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 > --0000000000003d1e5206250084cb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 sens= e. I think I see now why it's not really feasible to make such an adjus= tment..

Thanks for your help!
=
On Mon= , Oct 21, 2024 at 7:59=E2=80=AFPM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Anatolii Smolianinov <zarkonesmall@gmail.com> writes:<= br> > Right, it is not an official standard, but TZDIR appears in tzselect, = which
> comes from GNU libc.=C2=A0 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.=C2=A0 Which is how come no other<= br> program responds to that environment variable.=C2=A0 So if anything, that&#= 39;s
precedent for our behavior.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 regards, tom lane
--0000000000003d1e5206250084cb--