- Notifications
You must be signed in to change notification settings - Fork5k
Commit060f9f5
committed
Revert recent changes related to handling of 2PC files at recovery
This commit reverts8f67f99 (down to v13) andc3de0f9 (down tov17), as these are proving to not be completely correct regarding twoaspects:- In v17 and newer branches,c3de0f9's check for epoch handling isincorrect, and does not correctly handle frozen epochs. A logic closerto widen_snapshot_xid() should be used. The 2PC code should try tointegrate deeper with FullTransactionIds,5a1dfde being not enough.- In v13 and newer branches,8f67f99 is a workaround for the realissue, which is that we should not attempt CLOG lookups without reachingconsistency. This exists since728bd99, and this is reachable withProcessTwoPhaseBuffer() called by restoreTwoPhaseData() at the beginningof recovery.Per discussion with Noah Misch.Discussion:https://postgr.es/m/20250116010051.f3.nmisch@google.comBackpatch-through: 131 parent5f72564 commit060f9f5
File tree
2 files changed
+9
-32
lines changed- src
- backend/access/transam
- test/recovery/t
2 files changed
+9
-32
lines changedLines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2156 | 2156 |
| |
2157 | 2157 |
| |
2158 | 2158 |
| |
2159 |
| - | |
2160 |
| - | |
| 2159 | + | |
| 2160 | + | |
2161 | 2161 |
| |
2162 | 2162 |
| |
2163 | 2163 |
| |
2164 | 2164 |
| |
2165 |
| - | |
| 2165 | + | |
2166 | 2166 |
| |
2167 | 2167 |
| |
2168 | 2168 |
| |
2169 | 2169 |
| |
2170 | 2170 |
| |
2171 | 2171 |
| |
2172 |
| - | |
| 2172 | + | |
2173 | 2173 |
| |
2174 | 2174 |
| |
2175 | 2175 |
| |
2176 | 2176 |
| |
2177 | 2177 |
| |
2178 | 2178 |
| |
2179 |
| - | |
2180 |
| - | |
| 2179 | + | |
| 2180 | + | |
2181 | 2181 |
| |
2182 | 2182 |
| |
2183 | 2183 |
| |
2184 | 2184 |
| |
2185 |
| - | |
| 2185 | + | |
2186 | 2186 |
| |
2187 | 2187 |
| |
2188 | 2188 |
| |
2189 | 2189 |
| |
2190 | 2190 |
| |
2191 | 2191 |
| |
2192 |
| - | |
| 2192 | + | |
2193 | 2193 |
| |
2194 | 2194 |
| |
2195 | 2195 |
| |
|
Lines changed: 1 addition & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
527 | 527 |
| |
528 | 528 |
| |
529 | 529 |
| |
530 |
| - | |
531 |
| - | |
532 |
| - | |
533 |
| - | |
534 |
| - | |
535 |
| - | |
536 |
| - | |
537 |
| - | |
538 |
| - | |
539 |
| - | |
540 |
| - | |
541 |
| - | |
542 |
| - | |
543 |
| - | |
544 |
| - | |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
549 |
| - | |
550 |
| - | |
551 |
| - | |
552 |
| - |
0 commit comments
Comments
(0)