- Notifications
You must be signed in to change notification settings - Fork4.9k
Commite30d0d8
committed
WAL-log inplace update before revealing it to other sessions.
A buffer lock won't stop a reader having already checked tuplevisibility. If a vac_update_datfrozenid() and then a crash happenedduring inplace update of a relfrozenxid value, datfrozenxid couldovertake relfrozenxid. That could lead to "could not access status oftransaction" errors. Back-patch to v12 (all supported versions). Inv14 and earlier, this also back-patches the assertion removal fromcommit7fcf2fa.Discussion:https://postgr.es/m/20240620012908.92.nmisch@google.com1 parent4cf948c commite30d0d8
File tree
3 files changed
+46
-18
lines changed- src/backend/access
- heap
- transam
3 files changed
+46
-18
lines changedLines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
203 | 203 |
| |
204 | 204 |
| |
205 | 205 |
| |
206 |
| - | |
207 |
| - | |
208 |
| - | |
| 206 | + |
Lines changed: 45 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6135 | 6135 |
| |
6136 | 6136 |
| |
6137 | 6137 |
| |
| 6138 | + | |
| 6139 | + | |
6138 | 6140 |
| |
6139 | 6141 |
| |
6140 | 6142 |
| |
6141 | 6143 |
| |
6142 | 6144 |
| |
6143 | 6145 |
| |
6144 | 6146 |
| |
| 6147 | + | |
| 6148 | + | |
| 6149 | + | |
6145 | 6150 |
| |
6146 | 6151 |
| |
6147 | 6152 |
| |
| |||
6160 | 6165 |
| |
6161 | 6166 |
| |
6162 | 6167 |
| |
6163 |
| - | |
6164 |
| - | |
6165 |
| - | |
6166 |
| - | |
6167 |
| - | |
6168 |
| - | |
6169 |
| - | |
6170 | 6168 |
| |
6171 |
| - | |
| 6169 | + | |
| 6170 | + | |
| 6171 | + | |
| 6172 | + | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
| 6176 | + | |
6172 | 6177 |
| |
6173 | 6178 |
| |
6174 | 6179 |
| |
| |||
6178 | 6183 |
| |
6179 | 6184 |
| |
6180 | 6185 |
| |
| 6186 | + | |
| 6187 | + | |
| 6188 | + | |
| 6189 | + | |
6181 | 6190 |
| |
6182 |
| - | |
6183 |
| - | |
| 6191 | + | |
| 6192 | + | |
| 6193 | + | |
6184 | 6194 |
| |
6185 | 6195 |
| |
6186 | 6196 |
| |
6187 | 6197 |
| |
6188 | 6198 |
| |
| 6199 | + | |
| 6200 | + | |
| 6201 | + | |
| 6202 | + | |
| 6203 | + | |
| 6204 | + | |
| 6205 | + | |
| 6206 | + | |
| 6207 | + | |
6189 | 6208 |
| |
6190 | 6209 |
| |
6191 | 6210 |
| |
6192 | 6211 |
| |
6193 | 6212 |
| |
6194 | 6213 |
| |
6195 | 6214 |
| |
6196 |
| - | |
6197 |
| - | |
| 6215 | + | |
| 6216 | + | |
| 6217 | + | |
| 6218 | + | |
| 6219 | + | |
| 6220 | + | |
| 6221 | + | |
| 6222 | + | |
| 6223 | + | |
| 6224 | + | |
6198 | 6225 |
| |
6199 | 6226 |
| |
6200 | 6227 |
| |
6201 | 6228 |
| |
6202 | 6229 |
| |
6203 |
| - | |
| 6230 | + | |
6204 | 6231 |
| |
6205 | 6232 |
| |
| 6233 | + | |
| 6234 | + | |
| 6235 | + | |
| 6236 | + | |
6206 | 6237 |
| |
6207 | 6238 |
| |
6208 | 6239 |
| |
| |||
6215 | 6246 |
| |
6216 | 6247 |
| |
6217 | 6248 |
| |
| 6249 | + | |
6218 | 6250 |
| |
6219 | 6251 |
| |
6220 | 6252 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
271 |
| - | |
272 |
| - | |
273 | 271 |
| |
274 | 272 |
| |
275 | 273 |
| |
|
0 commit comments
Comments
(0)