Re: Is postgres ready for 2038?

2020-11-25 Thread Pavel Borisov
> There are no 32bit Windows version builds since Postgres 11, see: > > https://www.postgresql.org/download/windows/ > > but Postgres 13 still has the same 2038 problems. > > > > As @Pavel Borisov hints , I can find `_USE_32BIT_TIME_T` code here: > >

Re: Is postgres ready for 2038?

2020-11-25 Thread 方徳輝
Hi dear pgsql hackers Thanks for replies. There are no 32bit Windows version builds since Postgres 11, see: https://www.postgresql.org/download/windows/ but Postgres 13 still has the same 2038 problems. As @Pavel Borisov hints , I can find `_USE_32BIT_TIME_T` code here:

Re: Is postgres ready for 2038?

2020-11-18 Thread Tom Lane
Pavel Borisov writes: > чт, 19 нояб. 2020 г. в 09:29, Greg Stark : >> Wait, is configuring with a Perl that has 32-bit time_t driving the >> rest of Postgres to use 32-bit timestamps? That seems like the tail >> wagging the dog. >> It seems like a sensible compromise would be to have Postgres's

Re: Is postgres ready for 2038?

2020-11-18 Thread Pavel Borisov
чт, 19 нояб. 2020 г. в 09:29, Greg Stark : > On Wed, 18 Nov 2020 at 12:22, Tom Lane wrote: > > > > Andrew Dunstan writes: > > > On 11/18/20 9:44 AM, Tom Lane wrote: > > >> Hmm. Digging around, I see that Mkvcbuild.pm intentionally absorbs > > >> _USE_32BIT_TIME_T when building with a Perl that

Re: Is postgres ready for 2038?

2020-11-18 Thread Greg Stark
On Wed, 18 Nov 2020 at 12:22, Tom Lane wrote: > > Andrew Dunstan writes: > > On 11/18/20 9:44 AM, Tom Lane wrote: > >> Hmm. Digging around, I see that Mkvcbuild.pm intentionally absorbs > >> _USE_32BIT_TIME_T when building with a Perl that defines that. > >> I don't know what the state of play

Re: Is postgres ready for 2038?

2020-11-18 Thread Tom Lane
Andrew Dunstan writes: > On 11/18/20 9:44 AM, Tom Lane wrote: >> Hmm. Digging around, I see that Mkvcbuild.pm intentionally absorbs >> _USE_32BIT_TIME_T when building with a Perl that defines that. >> I don't know what the state of play is in terms of Windows Perl >> distributions getting off of

Re: Is postgres ready for 2038?

2020-11-18 Thread Andrew Dunstan
On 11/18/20 9:44 AM, Tom Lane wrote: > Pavel Borisov writes: >>> Maybe we need to dig a little more to see what's going on here. >> How about just a mention in the future documentation to never ever define >> _USE_32BIT_TIME_T when compiling PG under Windows? Should be enough, I >> suppose. >

Re: Is postgres ready for 2038?

2020-11-18 Thread Pavel Borisov
Yes, I agree. ср, 18 нояб. 2020 г. в 18:44, Tom Lane : > Pavel Borisov writes: > >> Maybe we need to dig a little more to see what's going on here. > > > How about just a mention in the future documentation to never ever define > > _USE_32BIT_TIME_T when compiling PG under Windows? Should be

Re: Is postgres ready for 2038?

2020-11-18 Thread Tom Lane
Pavel Borisov writes: >> Maybe we need to dig a little more to see what's going on here. > How about just a mention in the future documentation to never ever define > _USE_32BIT_TIME_T when compiling PG under Windows? Should be enough, I > suppose. Hmm. Digging around, I see that Mkvcbuild.pm

Re: Is postgres ready for 2038?

2020-11-18 Thread Pavel Borisov
> > But it does: "time_t is, by default, equivalent to __time64_t." See > > < > https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/time-time32-time64?view=msvc-160 > > > > > Maybe we need to dig a little more to see what's going on here. > How about just a mention in the future

Re: Is postgres ready for 2038?

2020-11-18 Thread Andrew Dunstan
On 11/17/20 11:04 AM, Tom Lane wrote: > =?UTF-8?B?5pa55b6z6Lyd?= writes: >> Is there any road map for 2038 problems in Postgres? > Postgres has no problem with post-2038 dates as long as you are using a > system with 64-bit time_t. In other words, the road map is "get off > Windows, or press

Re: Is postgres ready for 2038?

2020-11-17 Thread Tom Lane
=?UTF-8?B?5pa55b6z6Lyd?= writes: > Is there any road map for 2038 problems in Postgres? Postgres has no problem with post-2038 dates as long as you are using a system with 64-bit time_t. In other words, the road map is "get off Windows, or press Microsoft to fix their problems".

Is postgres ready for 2038?

2020-11-17 Thread 方徳輝
Hello dear pgsql hackers I think Postgres had fix 2038 problems since 8.4, when I read in stackexchange: https://dba.stackexchange.com/a/233084/102852 So I test on my PC by simply change system date to `2040-09-25`: - Windows 10 Home edition - CPU: AMD 64 bit - Postgres version