Add additional checks while creating the initial decoding snapshot.
authorAmit Kapila <akapila@postgresql.org>
Mon, 21 Nov 2022 03:24:43 +0000 (08:54 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 21 Nov 2022 03:24:43 +0000 (08:54 +0530)
commit240e0dbacd390a8465552e27c5af11f67d747adb
treed038f5cb72b74d0dd581016fe471795911c6c67a
parenta4adc31f6902f6fc29d74868e8969412fc590da9
Add additional checks while creating the initial decoding snapshot.

As per one of the CI reports, there is an assertion failure which
indicates that we were trying to use an unenforced xmin horizon for
decoding snapshots. Though, we couldn't figure out the reason for
assertion failure these checks would help us in finding the reason if the
problem happens again in the future.

Author: Amit Kapila based on suggestions by Andres Freund
Reviewd by: Andres Freund
Discussion: https://postgr.es/m/CAA4eK1L8wYcyTPxNzPGkhuO52WBGoOZbT0A73Le=ZUWYAYmdfw@mail.gmail.com
src/backend/replication/logical/snapbuild.c
src/backend/replication/walsender.c