postgresql/contrib/test_decoding
Andres Freund 7c17aac69d logical decoding: fix decoding of a commit's commit time.
When adding replication origins in 5aa235042, I somehow managed to set
the timestamp of decoded transactions to InvalidXLogRecptr when decoding
one made without a replication origin. Fix that, and the wrong type of
the new commit_time variable.

This didn't trigger a regression test failure because we explicitly
don't show commit timestamps in the regression tests, as they obviously
are variable. Add a test that checks that a decoded commit's timestamp
is within minutes of NOW() from before the commit.

Reported-By: Weiping Qu
Diagnosed-By: Artur Zakirov
Discussion: 56D4197E.9050706@informatik.uni-kl.de,
    56D42918.1010108@postgrespro.ru
Backpatch: 9.5, where 5aa235042 originates.
2016-03-02 23:42:21 -08:00
..
expected logical decoding: fix decoding of a commit's commit time. 2016-03-02 23:42:21 -08:00
specs Remove bogus step from test_decoding isolation tests. 2015-08-14 22:40:55 -04:00
sql logical decoding: fix decoding of a commit's commit time. 2016-03-02 23:42:21 -08:00
.gitignore test_decoding: Update .gitignore 2014-03-31 14:18:35 -04:00
logical.conf Introduce logical decoding. 2014-03-03 16:32:18 -05:00
Makefile logical decoding: fix decoding of a commit's commit time. 2016-03-02 23:42:21 -08:00
test_decoding.c Update copyright for 2016 2016-01-02 13:33:40 -05:00