Another try to fix the test case added by commit f5fc2f5b23.
authorAmit Kapila <akapila@postgresql.org>
Fri, 30 Apr 2021 02:25:42 +0000 (07:55 +0530)
committerAmit Kapila <akapila@postgresql.org>
Fri, 30 Apr 2021 02:25:42 +0000 (07:55 +0530)
commit51ef9173030cc196c6633ae82b7b32f404b0f768
tree18eedb0fe058a098a1d7d370f50daedaa086c66c
parentc9c37ae03fea0c8ad467392ddf03940b61974935
Another try to fix the test case added by commit f5fc2f5b23.

As per analysis, it appears that the 'drop slot' message from the previous
test and 'create slot' message of the new test are either missed or not
yet delivered to the stats collector due to which we will still see the
stats from the old slot. This can happen rarely which could be the reason
that we are seeing some failures in the buildfarm randomly. To avoid that
we are using a different slot name for the tests in
test_decoding/sql/stats.sql.

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