Re: pg_ctl/miscinit: print "MyStartTime" as a long long instead of long to avoid 2038 problem.
Max Johnson <max.johnson@novatechautomation.com>
From: Max Johnson <max.johnson@novatechautomation.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, "tgl@sss.pgh.pa.us" <tgl@sss.pgh.pa.us>
Date: 2024-09-25T20:04:59Z
Lists: pgsql-hackers
Hi Nathan, I think your patch looks good, no objections. I am happy to have contributed. Thanks, Max ________________________________ From: Nathan Bossart <nathandbossart@gmail.com> Sent: Wednesday, September 25, 2024 1:48 PM To: Max Johnson <max.johnson@novatechautomation.com> Cc: tgl@sss.pgh.pa.us <tgl@sss.pgh.pa.us>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org> Subject: Re: pg_ctl/miscinit: print "MyStartTime" as a long long instead of long to avoid 2038 problem. On Wed, Sep 25, 2024 at 03:17:45PM +0000, Max Johnson wrote: > I have amended my patch to reflect the changes that were discussed and > have verified on my system that it works the same as before. I have also > fixed a typo and changed the name of the patch to more accurately reflect > what it does now. Please let me know if there is anything else you'd like > me to do. Thanks! I went through all the other uses of MyStartTime and fixed those as needed, too. Please let me know what you think. -- nathan
Commits
-
Add INT64_HEX_FORMAT and UINT64_HEX_FORMAT to c.h.
- efdc7d747539 18.0 landed
-
Fix Y2038 issues with MyStartTime.
- c91d0af0a2ad 12.21 landed
- b255493aefe9 13.17 landed
- a356d23fd3ad 17.1 landed
- 8aaf88b63de3 16.5 landed
- 5d6187d2a283 18.0 landed
- 5cea7168dfe6 14.14 landed
- 01731eeeaa96 15.9 landed