diff options
| author | Andres Freund <andres@anarazel.de> | 2016-03-02 23:42:21 -0800 |
|---|---|---|
| committer | Andres Freund <andres@anarazel.de> | 2016-03-02 23:42:21 -0800 |
| commit | 7c17aac69dcae610b08c5965161151cd282f16bc (patch) | |
| tree | 7a2f467bcac44f83db1299394b0a03ef284e0167 /contrib/test_decoding/Makefile | |
| parent | a9d199f6d3b998929cdb8e8aa61e5cd8db9b220f (diff) | |
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.
Diffstat (limited to 'contrib/test_decoding/Makefile')
| -rw-r--r-- | contrib/test_decoding/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/test_decoding/Makefile b/contrib/test_decoding/Makefile index a362e696916..78816bfe2f8 100644 --- a/contrib/test_decoding/Makefile +++ b/contrib/test_decoding/Makefile @@ -38,7 +38,7 @@ submake-test_decoding: $(MAKE) -C $(top_builddir)/contrib/test_decoding REGRESSCHECKS=ddl rewrite toast permissions decoding_in_xact decoding_into_rel \ - binary prepared replorigin + binary prepared replorigin time regresscheck: | submake-regress submake-test_decoding temp-install $(MKDIR_P) regression_output |
