pgsql: Fix timestamp in end-of-recovery WAL records. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix timestamp in end-of-recovery WAL records.
Date
Msg-id E1Y1z9W-0003sw-43@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix timestamp in end-of-recovery WAL records.

We used time(null) to set a TimestampTz field, which gave bogus results.
Noticed while looking at pg_xlogdump output.

Backpatch to 9.3 and above, where the fast promotion was introduced.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f8c51fe6bbb095133e4218170ac70f7b86f928f5

Modified Files
--------------
src/backend/access/transam/xlog.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix timestamp in end-of-recovery WAL records.