forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit88b3a6c
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 parentb350175 commit88b3a6c
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
1439 | | - | |
1440 | | - | |
| 1439 | + | |
| 1440 | + | |
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1490 | 1490 | | |
1491 | 1491 | | |
1492 | 1492 | | |
1493 | | - | |
| 1493 | + | |
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
| |||
0 commit comments
Comments
(0)