Peter Eisentraut writes:
> On 14.11.25 22:11, Tom Lane wrote:
>> "leapyear" is bool, and I believe these casts-to-int were put in to
>> suppress compiler bleats about up-casting that to int. This probably
>> dates from when we equated bool to char, and maybe it's moot now,
>> but I'm not sure.
>
On 14.11.25 22:11, Tom Lane wrote:
Peter Eisentraut writes:
On 12.11.25 19:02, Tom Lane wrote:
Hm, I've had "re-sync TZ code with upstream" on my TODO list for
several years now. I believe there's been quite a bit of churn
upstream since tzcode2020d, some of it oriented towards this same
issu
Peter Eisentraut writes:
> On 12.11.25 19:02, Tom Lane wrote:
>> Hm, I've had "re-sync TZ code with upstream" on my TODO list for
>> several years now. I believe there's been quite a bit of churn
>> upstream since tzcode2020d, some of it oriented towards this same
>> issue of code modernization.
On 12.11.25 19:02, Tom Lane wrote:
Peter Eisentraut writes:
To fix that, I re-downloaded the upstream code (same version as before),
applied the fixes described in src/timezone/README, except those related
to the integer types, and then put back the PostgreSQL-specific code and
massaged things
Peter Eisentraut writes:
> To fix that, I re-downloaded the upstream code (same version as before),
> applied the fixes described in src/timezone/README, except those related
> to the integer types, and then put back the PostgreSQL-specific code and
> massaged things to remove irrelevant differ
a4b1e4c1e6e9e13561cc74d3e9625caf55d55f10 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut
Date: Wed, 12 Nov 2025 17:04:02 +0100
Subject: [PATCH] Update timezone to C99
This reverts changes done in PostgreSQL over the upstream code to
avoid relying on C99 and .
---
src/timezone/README | 14
src/timezone/localtime.c