Commit 477ad05
committed
Relax overly strict sanity check for upgraded ancient databases
Commit 4800f16 added some sanity checks to ensure we don't
accidentally corrupt data, but in one of them we failed to consider the
effects of a database upgraded from 9.2 or earlier, where a tuple
exclusively locked prior to the upgrade has a slightly different bit
pattern. Fix that by using the macro that we fixed in commit
74ebba8 for similar situations.
Reported-by: Alexandre Garcia
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/CAPYLKR6yxV4=pfW0Gwij7aPNiiPx+3ib4USVYnbuQdUtmkMaEA@mail.gmail.com
Andres suspects that this bug may have wider ranging consequences, but I
couldn't find anything.1 parent b5febc1 commit 477ad05
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6799 | 6799 | | |
6800 | 6800 | | |
6801 | 6801 | | |
6802 | | - | |
| 6802 | + | |
6803 | 6803 | | |
6804 | 6804 | | |
6805 | 6805 | | |
| |||
0 commit comments