forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf222349
committed
Close race condition between datfrozen and relfrozen updates.
vac_update_datfrozenxid() did multiple loads of relfrozenxid andrelminmxid from buffer memory, and it assumed each would get the samevalue. Not so if a concurrent vac_update_relstats() did an inplaceupdate. Commit2d2e40e fixed the samekind of bug in vac_truncate_clog(). Today's bug could cause therel-level field and XIDs in the rel's rows to precede the db-levelfield. A cluster having such values should VACUUM affected tables.Back-patch to v12 (all supported versions).Discussion:https://postgr.es/m/20240423003956.e7.nmisch@google.com1 parentcb0ccef commitf222349
1 file changed
+16
-12
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1330 | 1330 |
| |
1331 | 1331 |
| |
1332 | 1332 |
| |
| 1333 | + | |
| 1334 | + | |
1333 | 1335 |
| |
1334 | 1336 |
| |
1335 | 1337 |
| |
| |||
1338 | 1340 |
| |
1339 | 1341 |
| |
1340 | 1342 |
| |
1341 |
| - | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
1342 | 1346 |
| |
1343 | 1347 |
| |
1344 | 1348 |
| |
| |||
1348 | 1352 |
| |
1349 | 1353 |
| |
1350 | 1354 |
| |
1351 |
| - | |
1352 |
| - | |
| 1355 | + | |
| 1356 | + | |
1353 | 1357 |
| |
1354 | 1358 |
| |
1355 | 1359 |
| |
| |||
1368 | 1372 |
| |
1369 | 1373 |
| |
1370 | 1374 |
| |
1371 |
| - | |
| 1375 | + | |
1372 | 1376 |
| |
1373 |
| - | |
| 1377 | + | |
1374 | 1378 |
| |
1375 | 1379 |
| |
1376 |
| - | |
| 1380 | + | |
1377 | 1381 |
| |
1378 | 1382 |
| |
1379 | 1383 |
| |
1380 | 1384 |
| |
1381 | 1385 |
| |
1382 | 1386 |
| |
1383 |
| - | |
1384 |
| - | |
| 1387 | + | |
| 1388 | + | |
1385 | 1389 |
| |
1386 | 1390 |
| |
1387 |
| - | |
| 1391 | + | |
1388 | 1392 |
| |
1389 | 1393 |
| |
1390 |
| - | |
| 1394 | + | |
1391 | 1395 |
| |
1392 | 1396 |
| |
1393 | 1397 |
| |
1394 | 1398 |
| |
1395 | 1399 |
| |
1396 | 1400 |
| |
1397 |
| - | |
1398 |
| - | |
| 1401 | + | |
| 1402 | + | |
1399 | 1403 |
| |
1400 | 1404 |
| |
1401 | 1405 |
| |
|
0 commit comments
Comments
(0)