Fix tests for replication slots stats.
authorAmit Kapila <akapila@postgresql.org>
Thu, 13 May 2021 04:44:07 +0000 (10:14 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 13 May 2021 04:53:27 +0000 (10:23 +0530)
commitfc69509131c33c298e39dd25d542374e86aa3295
treefc018fa0c95ade1e3440fb23658cabb167f0e10b
parentb35f827b68dc1e761e17f621fbf17c3ecd073cb0
Fix tests for replication slots stats.

Some of the tests were not considering that the slot's spill stats could be
received by the stats collector after we have reset the stats. Remove
those tests and don't check total bytes decoded and sent to output plugin
in the spilled stats test as we can send the spilled stats to the stats
collector before actually sending the changes to output plugin.

Reported-by: Tom Lane as per buildfarm
Author: Vignesh C, Sawada Masahiko
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/20210319185247.ldebgpdaxsowiflw@alap3.anarazel.de
contrib/test_decoding/expected/stats.out
contrib/test_decoding/sql/stats.sql