Re: Y2038 BUG

2025-11-02 Thread Bryan Green
On 11/2/2025 4:48 PM, Tom Lane wrote: > Bryan Green writes: >> There is a Y2038 bug in win32gettimeofday.c due to long being 32-bits on >> Windows and the use of struct timeval. > > Yeah. > >> Obviously, there are a lot of places in the codebase where gettimeofday

Re: Y2038 BUG

2025-11-02 Thread Tom Lane
Bryan Green writes: > There is a Y2038 bug in win32gettimeofday.c due to long being 32-bits on > Windows and the use of struct timeval. Yeah. > Obviously, there are a lot of places in the codebase where gettimeofday > is called. My question is whether we want to fix this now

Y2038 BUG

2025-11-02 Thread Bryan Green
Hello, There is a Y2038 bug in win32gettimeofday.c due to long being 32-bits on Windows and the use of struct timeval. int gettimeofday(struct timeval *tp, void *tzp) struct timeval is defined in winsock2.h and is needed by the Windows select() call. The 64-bit values have to be narrowed to 32