aboutsummaryrefslogtreecommitdiff
path: root/contrib/pg_logicalinspect/pg_logicalinspect.c
diff options
context:
space:
mode:
authorMasahiko Sawada <msawada@postgresql.org>2025-03-11 09:30:00 -0700
committerMasahiko Sawada <msawada@postgresql.org>2025-03-11 09:30:00 -0700
commita49927f04cd0c66e1bc41f551160fce50f382d8c (patch)
treefd16c27c2ce4e061faa42934b22723902361662c /contrib/pg_logicalinspect/pg_logicalinspect.c
parent8b1b342544b69b281ffd3aafe594aec629ec4d3c (diff)
downloadpostgresql-a49927f04cd0c66e1bc41f551160fce50f382d8c.tar.gz
postgresql-a49927f04cd0c66e1bc41f551160fce50f382d8c.zip
pg_logicalinspect: Stabilize isolation tests.
The previous isolation tests did not account for the possibility that the background writer or the checkpointer could write a RUNNING_XACTS record, which could cause logical decoding to produce more logical snapshots than expected. This commit modifies the isolation tests to verify that at least one logical snapshot contains the expected number of committed or ongoing catalog-change transactions. Per buildfarm member skink. Reported-by: Andres Freund <andres@anarazel.de> Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Reviewed-by: Amit Kapila <amit.kapila16@gmail.com> Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/5qbxud4pvnvmtuoi7weiizm5hmumxaeohx4vztfhrwlfhyz6rj@buh4435mllwo
Diffstat (limited to 'contrib/pg_logicalinspect/pg_logicalinspect.c')
0 files changed, 0 insertions, 0 deletions