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.98.2) (envelope-from ) id 1xBjwW-00000003MO9-3UES for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Sep 2026 02:21:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xBjwV-0000000HP7c-3h5t for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Sep 2026 02:21:11 +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.98.2) (envelope-from ) id 1xBjwV-0000000HP7U-2OjV for pgsql-hackers@lists.postgresql.org; Wed, 30 Sep 2026 02:21:11 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xBjwT-00000001xrK-2MNy for pgsql-hackers@lists.postgresql.org; Wed, 30 Sep 2026 02:21:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 68U2L3ok724085 for ; Tue, 29 Sep 2026 22:21:03 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org Subject: Do we need to back-patch tzcode 2026b after all? MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <724083.1790734863.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 29 Sep 2026 22:21:03 -0400 Message-ID: <724084.1790734863@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Commit aeb07c55f updated our copy of the timezone code to match upstream release 2026b. But I skipped our historical practice of simultaneously back-patching into released branches, arguing that "there are few pressing reasons for a back-patch". However, I read this in tzdb's latest release notice [1]: NOTE FOR 2026b TEMPORARY HACK FOR CLDR AND CANADA: This temporary hack works around a Canadian timekeeping bug in Unicode CLDR 48 and earlier. Unfortunately it also causes zic 2023d through 2026a, in the default slim mode, to generate a TZif file that does not conform to Internet RFC 9636 =C2=A73.3. The buggy file in turn causes some TZif readers, including tzcode itself, to ignore America/Vancouver=E2=80=99s 2026-11-01 02:00 transi= tion from PDT (tm_isdst=3D1) to MST (tm_isdst=3D0). Although the buggy file does not cause any known TZif reader to mishandle UT offsets, caution is advised when using zic 2023d through 2026a to compile data from more-recent tz releases. IOW, in America/Vancouver and perhaps now also Canadian timezones further east, our back branches may misreport whether or not those zones are on standard time after this fall's [non] transitions. It's possible that this is not so, because Eggert specifies above that there's not a problem before 2023d, and we had been on 2020d. But how good should we feel about running code that's so old that it predates this bug? So now I'm thinking that was a mistake and we should back-patch. I was concerned in aeb07c55f about API changes in tzload() and tzparse(), but we might be able to put in compatibility wrappers for those. Or we could just decide that we doubt any extensions are calling those directly, and accept the API/ABI break. On the third hand, this is most likely a non-problem for the majority of our users; I think that most people probably consume platform-provided timezone data these days, rather than using our own copy of zic. So perhaps it's not worth sweating over. Thoughts? regards, tom lane [1] https://lists.iana.org/hyperkitty/list/tz-announce@iana.org/thread/VXI= A4AU73OQL3OZ3ZBZHWIASIIVBGUJV/