pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
collector's time is wrong.(year 2038 problem)
2+ messages / 2 participants
[nested] [flat]

* collector's time is wrong.(year 2038 problem)
@ 2016-11-02 09:08 $B@P86(B $BOB<y(B <Kazuki.Ishihara@keisetsu.jp>
  2016-11-02 14:35 ` Re: collector's time is wrong.(year 2038 problem) Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: $B@P86(B $BOB<y(B @ 2016-11-02 09:08 UTC (permalink / raw)
  To: pgsql-bugs

Dear PostgreSQL Developers.

 

This problem occurs at ver. 9.3 or later.

 

Test environment

Windows 7 Ultimate (64bit)

Language:Japanese

PostgreSQL 9.3.6 and 9.6.1

 

Windows 8 Embedded (64bit).

Language:English

PostgreSQL 9.3.5

 

Steps

1.     Change current time. (e.g. Sep. 1st 2040)

2.     Start PostgreSQL Service.

 

If someone change the current time after than January 9th 2038.

pgstat_recv_inquiry() method was wrong behavior, because GetCurrentTimestamp() returned wrong timestamp.

Could you see following logs.(Winows7 x64 PostgreSQL ver.9.6.1)

 

2040-11-01 14:32:29 JST LOG:  database system was shut down at 2016-11-01 14:29:15 JST

2040-11-01 14:32:29 JST LOG:  MultiXact member wraparound protections are now enabled

2040-11-01 14:32:29 JST LOG:  database system is ready to accept connections

2040-11-01 14:32:29 JST LOG:  autovacuum launcher started

2040-11-01 14:32:29 JST LOG:  stats_timestamp 2016-11-01 14:29:15.049209+09 is later than collector's time 1904-09-26
08:04:13.934251+09 for database 0

2040-11-01 14:33:30 JST LOG:  stats collector's time 2016-11-01 14:29:15.049209+09 is later than backend local time 1904-09-26
08:05:14.025556+09

2040-11-01 14:33:30 JST LOG:  stats_timestamp 2016-11-01 14:29:15.049209+09 is later than collector's time 1904-09-26
08:05:14.025556+09 for database 12401

 

And I don't know whether this causes, but the state of the PostgreSQL service in the Service Manager won't be "starting".

Could you investigating these problem.

 

best regards.

/*------------------------------------------------

Kazuki Ishihara

Mail:  <mailto:Kazuki.Ishihara@keisetsu.jp> Kazuki.Ishihara@keisetsu.jp

------------------------------------------------*/

 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: collector's time is wrong.(year 2038 problem)
  2016-11-02 09:08 collector's time is wrong.(year 2038 problem) $B@P86(B $BOB<y(B <Kazuki.Ishihara@keisetsu.jp>
@ 2016-11-02 14:35 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-11-02 14:35 UTC (permalink / raw)
  To: $B@P86(B $BOB<y(B <Kazuki.Ishihara@keisetsu.jp>; +Cc: pgsql-bugs

=?iso-2022-jp?B?GyRCQFA4NhsoQiAbJEJPQjx5GyhC?= <Kazuki.Ishihara@keisetsu.jp> writes:
> 1.     Change current time. (e.g. Sep. 1st 2040)
> 2.     Start PostgreSQL Service.

This is not going to work on any platform that uses 32-bit time_t.
It's not our bug, it's that the system time API doesn't work after 2038.

The short answer is that you're not going to still be using Windows 8
in 2040, so don't worry about it.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-11-02 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-11-02 09:08 collector's time is wrong.(year 2038 problem) $B@P86(B $BOB<y(B <Kazuki.Ishihara@keisetsu.jp>
2016-11-02 14:35 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox