Test replay of regression tests.
authorThomas Munro <tmunro@postgresql.org>
Fri, 14 Jan 2022 08:39:18 +0000 (21:39 +1300)
committerThomas Munro <tmunro@postgresql.org>
Fri, 14 Jan 2022 11:09:24 +0000 (00:09 +1300)
commit123828a7fa563025d0ceee10cf1b2a253cd05319
treedf68664ce27324544904b8f3c573936db6565cd8
parentd1511fe1b040853f6e10d353e56b42bb96ae239d
Test replay of regression tests.

Add a new TAP test under src/test/recovery to run the standard
regression tests while a streaming replica replays the WAL.  This
provides a basic workout for WAL decoding and redo code, and compares
the replicated result.

Optionally, enable (expensive) wal_consistency_checking if listed in
the env variable PG_TEST_EXTRA.

Reviewed-by: 綱川 貴之 (Takayuki Tsunakawa) <tsunakawa.takay@fujitsu.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Anastasia Lubennikova <lubennikovaav@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGKpRWQ9SxdxxDmTBCJoR0YnFpMBe7kyzY8SUQk%2BHeskxg%40mail.gmail.com
doc/src/sgml/regress.sgml
src/test/recovery/Makefile
src/test/recovery/t/027_stream_regress.pl [new file with mode: 0644]
src/tools/msvc/vcregress.pl