]> 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:03:56 +0000 (17:03 +0200)
commitf8c51fe6bbb095133e4218170ac70f7b86f928f5
tree359e0dff75590e6cf247488216fa022e40a4bf1e
parent0e68570e8b4419b0484a0f96ee30ab34561c3a91
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