Re: pg_ctl/miscinit: print "MyStartTime" as a long long instead of long to avoid 2038 problem. - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: pg_ctl/miscinit: print "MyStartTime" as a long long instead of long to avoid 2038 problem.
Date
Msg-id ZwQvtUbPKaaRQezd@nathan
Whole thread Raw
In response to Re: pg_ctl/miscinit: print "MyStartTime" as a long long instead of long to avoid 2038 problem.  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Fri, Sep 27, 2024 at 02:10:47PM -0500, Nathan Bossart wrote:
> Alright.  I was able to back-patch it to v12 without too much trouble,
> fortunately.  I'll commit that soon unless anyone else has feedback.

Committed, thanks!

I refrained from introducing INT64_HEX_FORMAT/UINT64_HEX_FORMAT in c.h
because I felt there was a nonzero chance of that causing problems with
third-party code on the back-branches.  We could probably add them for v18,
though.

-- 
nathan



pgsql-hackers by date:

Previous
From: Dagfinn Ilmari Mannsåker
Date:
Subject: Re: Changing the state of data checksums in a running cluster
Next
From: Bruce Momjian
Date:
Subject: Re: pg_upgrade check for invalid databases