Commit eb5ad4f
committed
Check that xmax didn't commit in freeze check.
We cannot rely on TransactionIdDidAbort here, since in general it may
report transactions that were in-progress at the time of an earlier hard
crash as not aborted, effectively behaving as if they were still in
progress even after crash recovery completes. Go back to defensively
verifying that xmax didn't commit instead.
Oversight in commit 79d4bf4.
Author: Peter Geoghegan <pg@bowt.ie>
Reported-By: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20230104035636.hy5djyr2as4gbc4q@awork3.anarazel.de1 parent 5212d44 commit eb5ad4f
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6208 | 6208 | | |
6209 | 6209 | | |
6210 | 6210 | | |
6211 | | - | |
| 6211 | + | |
6212 | 6212 | | |
6213 | 6213 | | |
6214 | | - | |
| 6214 | + | |
6215 | 6215 | | |
6216 | 6216 | | |
6217 | 6217 | | |
| |||
6825 | 6825 | | |
6826 | 6826 | | |
6827 | 6827 | | |
| 6828 | + | |
| 6829 | + | |
| 6830 | + | |
| 6831 | + | |
| 6832 | + | |
| 6833 | + | |
6828 | 6834 | | |
6829 | 6835 | | |
6830 | 6836 | | |
6831 | 6837 | | |
6832 | 6838 | | |
6833 | | - | |
| 6839 | + | |
6834 | 6840 | | |
6835 | 6841 | | |
6836 | | - | |
| 6842 | + | |
6837 | 6843 | | |
6838 | 6844 | | |
6839 | 6845 | | |
| |||
0 commit comments