Further stabilize results of 019_replslot_limit.pl.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Apr 2020 21:28:58 +0000 (17:28 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Apr 2020 21:28:58 +0000 (17:28 -0400)
commite083fa34ced0d53807a57482048bb4c135c3d006
tree1d136b6453154b89ea034be3beb348eb07d055c7
parent2e0e409e3cbab4f4ac01a6f70931817cfd2bdcb1
Further stabilize results of 019_replslot_limit.pl.

Depending on specific values of restart_lsn or pg_current_wal_lsn()
is obviously unsafe.  The previous coding tried to dodge this issue
by rounding off, but that's not good enough, as shown by multiple
buildfarm members.  Nuke all the uses of these values except for
null-ness checks, pending some credible argument why we should think
something else could be usefully stable.

Kyotaro Horiguchi, further modified by me

Discussion: https://postgr.es/m/E1jM1Sa-0003mS-99@gemulon.postgresql.org
src/test/recovery/t/019_replslot_limit.pl