forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite83ebfe
committed
Have VACUUM warn on relfrozenxid "in the future".
Commits74cf7d4 anda61daa1 fixed pg_upgrade bugs involving oversightsin how relfrozenxid or relminmxid are carried forward or initialized.Corruption caused by bugs of this nature was ameliorated by commit78db307, which taught VACUUM to always overwrite existing invalidrelfrozenxid or relminmxid values that are apparently "in the future".Extend that work now by showing a warning in the event of overwritingeither relfrozenxid or relminmxid due to an existing value that is "inthe future". There is probably a decent chance that the sanity checksadded by commit699bf7d will raise an error before VACUUM reachesthis point, but we shouldn't rely on that.Author: Peter Geoghegan <pg@bowt.ie>Reviewed-By: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/CAH2-WzmRZEzeGvLv8yDW0AbFmSvJjTziORqjVUrf74mL4GL0Ww@mail.gmail.com1 parent1691512 commite83ebfe
1 file changed
+52
-18
lines changedLines changed: 52 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1340 | 1340 |
| |
1341 | 1341 |
| |
1342 | 1342 |
| |
1343 |
| - | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1344 | 1348 |
| |
1345 | 1349 |
| |
1346 | 1350 |
| |
| |||
1406 | 1410 |
| |
1407 | 1411 |
| |
1408 | 1412 |
| |
| 1413 | + | |
| 1414 | + | |
1409 | 1415 |
| |
1410 | 1416 |
| |
1411 |
| - | |
1412 |
| - | |
1413 |
| - | |
1414 |
| - | |
1415 |
| - | |
| 1417 | + | |
1416 | 1418 |
| |
1417 |
| - | |
1418 |
| - | |
1419 |
| - | |
1420 |
| - | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1421 | 1433 |
| |
1422 | 1434 |
| |
1423 | 1435 |
| |
| 1436 | + | |
| 1437 | + | |
1424 | 1438 |
| |
1425 | 1439 |
| |
1426 |
| - | |
1427 |
| - | |
1428 |
| - | |
1429 |
| - | |
| 1440 | + | |
1430 | 1441 |
| |
1431 |
| - | |
1432 |
| - | |
1433 |
| - | |
1434 |
| - | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
1435 | 1456 |
| |
1436 | 1457 |
| |
1437 | 1458 |
| |
1438 | 1459 |
| |
1439 | 1460 |
| |
1440 | 1461 |
| |
1441 | 1462 |
| |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
1442 | 1476 |
| |
1443 | 1477 |
| |
1444 | 1478 |
| |
|
0 commit comments
Comments
(0)