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

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix timestamp in end-of-recovery WAL records.
Date: 2014-12-19 15:07:38
Message-ID: E1Y1z9W-0003st-3s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5c805d0a813e6c611485bfc9bde9d2a10d1800e5

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

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2014-12-19 18:04:48 pgsql: pg_event_trigger_dropped_objects: add behavior flags
Previous Message Andres Freund 2014-12-19 14:01:42 pgsql: Prevent potentially hazardous compiler/cpu reordering during lwl