forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit78a34c6
committed
During heap rebuild, lock any TOAST index until end of transaction.
swap_relation_files() calls toast_get_valid_index() to find and lockthis index, just before swapping with the rebuilt TOAST index. Thelatter function releases the lock before returning. Potential formischief is low; a concurrent session can issue ALTER INDEX ... SET(fillfactor = ...), which is not alarming. Nonetheless, changingpg_class.relfilenode without a lock is unconventional. Back-patch to9.5 (all supported versions), because another fix needs this.Discussion:https://postgr.es/m/20191226001521.GA1772687@rfd.leadboat.com1 parent4034868 commit78a34c6
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1447 | 1447 |
| |
1448 | 1448 |
| |
1449 | 1449 |
| |
1450 |
| - | |
1451 |
| - | |
| 1450 | + | |
| 1451 | + | |
1452 | 1452 |
| |
1453 | 1453 |
| |
1454 | 1454 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1636 | 1636 |
| |
1637 | 1637 |
| |
1638 | 1638 |
| |
1639 |
| - | |
| 1639 | + | |
1640 | 1640 |
| |
1641 | 1641 |
| |
1642 | 1642 |
| |
|
0 commit comments
Comments
(0)