Fix the incorrect assertion introduced in commit 7f13ac8123.
authorAmit Kapila <akapila@postgresql.org>
Mon, 29 Aug 2022 02:40:10 +0000 (08:10 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 29 Aug 2022 02:40:10 +0000 (08:10 +0530)
commitd2169c998553a6945fd51b8a1e5e9e1384283fdd
tree364a40e538c3deb8ef6a056b7bff4b31a7b4260e
parent8c7fc86ca979f558bb7028763a71aa1ac7ca19b8
Fix the incorrect assertion introduced in commit 7f13ac8123.

It has been incorrectly assumed in commit 7f13ac8123 that we can either
purge all or none in the catalog modifying xids list retrieved from a
serialized snapshot. It is quite possible that some of the xids in that
array are old enough to be pruned but not others.

As per buildfarm

Author: Amit Kapila and Masahiko Sawada
Reviwed-by: Masahiko Sawada
Discussion: https://postgr.es/m/CAA4eK1LBtv6ayE+TvCcPmC-xse=DVg=SmbyQD1nv_AaqcpUJEg@mail.gmail.com
contrib/test_decoding/expected/catalog_change_snapshot.out
contrib/test_decoding/specs/catalog_change_snapshot.spec
src/backend/replication/logical/snapbuild.c