Fix the test for decoding of two-phase transactions.
authorAmit Kapila <akapila@postgresql.org>
Sat, 9 Jan 2021 10:15:38 +0000 (15:45 +0530)
committerAmit Kapila <akapila@postgresql.org>
Sat, 9 Jan 2021 10:15:38 +0000 (15:45 +0530)
commite33d004900f76c35759293fdedd4861b198fbf5b
tree67cdac6a5179f7ef95acb4955987f57ebfb4ef68
parent39d4a153105f0693d93f593a23e5144e2bd031ef
Fix the test for decoding of two-phase transactions.

Commit 5a3574d7b3 added the test for decoding of two-phase transactions
during the build of a consistent snapshot. The test forgot to skip empty
xacts which can lead to decoding of extra empty transactions due to
background activity by autovacuum.

Per report by buildfarm.

Reported-by: Tom Lane
Discussion: https://postgr.es/m/363512.1610171267@sss.pgh.pa.us
contrib/test_decoding/expected/twophase_snapshot.out
contrib/test_decoding/specs/twophase_snapshot.spec