File tree 3 files changed +25
-1
lines changed
3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 23
23
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap
24
24
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap MODE=legacy
25
25
- 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
33
33
echo " ############### Applying ptrack patch"
34
34
git apply -v -3 ../patches/$PG_BRANCH -ptrack-core.diff
35
35
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
+
36
41
echo " ############### Compiling Postgres"
37
42
if [ " $TEST_CASE " = " tap" ] && [ " $MODE " = " legacy" ]; then
38
43
./configure CFLAGS=' -DEXEC_BACKEND' --disable-atomics --prefix=$PGHOME --enable-debug --enable-cassert --enable-depend --enable-tap-tests
97
102
echo " ############### Testing"
98
103
if [ " $MODE " = " basic" ]; then
99
104
export PG_PROBACKUP_TEST_BASIC=ON
105
+ elif [ " $MODE " = " paranoia" ]; then
106
+ export PG_PROBACKUP_PARANOIA=ON
100
107
fi
101
108
102
109
if [ " $TEST_CASE " = " all" ]; then
You can’t perform that action at this time.
0 commit comments