Re: Update timezone to C99

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-11-14T08:11:48Z
Lists: pgsql-hackers
On 12.11.25 19:02, Tom Lane wrote:
> Peter Eisentraut <peter@eisentraut.org> 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 differences.  There were a few
>> other minor and cosmetic changes that I left in to improve alignment
>> with upstream.
> 
> 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.  Maybe we should try to sync with
> a newer release while we're at it.

My idea was to do this C99 adjustment first so that the differences to 
upstream are reduced, which would hopefully simplify updating to that 
newer code.




Commits

  1. Update timezone to C99

  2. Remove obsolete cast