]> granicus.if.org Git - postgresql/commit
Fix timestamp in end-of-recovery WAL records.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 19 Dec 2014 15:00:21 +0000 (17:00 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 19 Dec 2014 15:04:20 +0000 (17:04 +0200)
commit5c805d0a813e6c611485bfc9bde9d2a10d1800e5
tree1e74858d52a0dc605c7ad9fc7e73d0f72c8b9611
parent37de8de9e33606a043e98fee64b5595aedaa8254
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.
src/backend/access/transam/xlog.c