Likely wrong interruption time reported in log files (8.0.0 and 8.0.3). - Mailing list pgsql-hackers-win32

From Knut P Lehre
Subject Likely wrong interruption time reported in log files (8.0.0 and 8.0.3).
Date
Msg-id 42BFF0FF000004D5@cpfe6.be.tisc.dk
Whole thread Raw
Responses Re: Likely wrong interruption time reported in log files (8.0.0 and 8.0.3).  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers-win32
For some reason the second part of my post ("1) ...  2) Likely wrong interruption
time reported in log files (8.0.0 and 8.0.3).") was split up into several
parts, and some of it disappeared. I am therefore resending it as a separate
message. Could be that the bugs list would be more appropriate. Anyway,
the following happened on Windows Server 2003.

The pgsql server was interrupted a few times, likely because of a hardware
problem. I wanted to check at what time the server had been interrupted,
and found the following info in the log files:

From 1st log file, restart after planned shutdown for backup at 05:00:00
(running version 8.0.0):

2005-04-21 05:55:15  LOG:  database system was shut down at 2005-04-21 05:00:00
W. Europe Daylight Time
2005-04-21 05:55:15  LOG:  database system is ready

From 2nd log file, automatic restart after likely hardware failure:

2005-04-21 07:07:32  LOG:  database system was interrupted at 2005-04-21
05:55:15 W. Europe Daylight Time
2005-04-21 07:07:32  LOG:  database system is ready

Note that interruption time is identical to the last startup time.
And similar some weeks later (after upgrade to 8.0.3):

From 1st file:

2005-05-31 05:57:52  LOG:  database system was shut down at 2005-05-31 05:00:00
W. Europe Daylight Time
2005-05-31 05:57:52  LOG:  database system is ready

From 2nd file:

2005-05-31 09:43:04  LOG  database system was interrupted at 2005-05-31
05:57:52 W. Europe Daylight Time
2005-05-31 09:43:04  LOG:  database system is ready

Again, the reported interruption time is identical to the last startup time.
The reported pg interruption times also did not match the timestamps produced
by other processes during these events. Could it be that the logger
uses a wrong time stamp for the interruption time report? Does it depend
on settings in postgresql.conf?



pgsql-hackers-win32 by date:

Previous
From: "Knut P Lehre"
Date:
Subject: Re: 1) Error event produced during 8.0.3 shutdown. 2) Likely rong interruption time reported in log files (8.0.0 and 8.0.3).
Next
From: "Magnus Hagander"
Date:
Subject: Re: 1) Error event produced during 8.0.3 shutdown. 2) Likely rong interruption time reported in log files (8.0.0 and 8.0.3).