File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 2323 - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap
2424 - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap MODE=legacy
2525 - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=all
26- - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=test_ptrack_multiple_segments TEST_REPEATS=5
26+ - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=all MODE=paranoia
27+ - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=test_ptrack_multiple_segments TEST_REPEATS=5 MODE=paranoia
Original file line number Diff line number Diff line change 1+ diff --git a/src/backend/access/heap/heapam_visibility.c b/src/backend/access/heap/heapam_visibility.c
2+ index 537e681b236..bd9f010f2ea 100644
3+ --- a/src/backend/access/heap/heapam_visibility.c
4+ +++ b/src/backend/access/heap/heapam_visibility.c
5+ @@ -113,6 +113,11 @@ static inline void
6+ SetHintBits(HeapTupleHeader tuple, Buffer buffer,
7+ uint16 infomask, TransactionId xid)
8+ {
9+ + /*
10+ + * Turn off hint bits to test pg_probackup with PG_PROBACKUP_PARANOIA=ON,
11+ + * i.e. doing per block checksums comparison.
12+ + */
13+ + return;
14+ if (TransactionIdIsValid(xid))
15+ {
16+ /* NB: xid must be known committed here! */
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ cd postgres # Go to postgres dir
3333echo " ############### Applying ptrack patch"
3434git apply -v -3 ../patches/$PG_BRANCH -ptrack-core.diff
3535
36+ if [ " $MODE " = " paranoia" ]; then
37+ echo " ############### Paranoia mode: applying turn-off-hint-bits.diff"
38+ git apply -v -3 ../patches/turn-off-hint-bits.diff
39+ fi
40+
3641echo " ############### Compiling Postgres"
3742if [ " $TEST_CASE " = " tap" ] && [ " $MODE " = " legacy" ]; then
3843 ./configure CFLAGS=' -DEXEC_BACKEND' --disable-atomics --prefix=$PGHOME --enable-debug --enable-cassert --enable-depend --enable-tap-tests
97102 echo " ############### Testing"
98103 if [ " $MODE " = " basic" ]; then
99104 export PG_PROBACKUP_TEST_BASIC=ON
105+ elif [ " $MODE " = " paranoia" ]; then
106+ export PG_PROBACKUP_PARANOIA=ON
100107 fi
101108
102109 if [ " $TEST_CASE " = " all" ]; then
You can’t perform that action at this time.
0 commit comments