forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit83ecfa9
committed
Release lock after encountering bogs row in vac_truncate_clog()
When vac_truncate_clog() encounters bogus datfrozenxid / datminmxid values, itreturns early. Unfortunately, until now, it did not releaseWrapLimitsVacuumLock. If the backend later tries to acquireWrapLimitsVacuumLock, the session / autovacuum worker hangs in anuncancellable way. Similarly, other sessions will hang waiting for thelock. However, if the backend holding the lock exited or errored out for somereason, the lock was released.The bug was introduced as a side effect of566372b.It is interesting that there are no production reports of this problem. Thatis likely due to a mix of bugs leading to bogus values having gotten lesscommon, process exit releasing locks and instances of hangs being hard todebug for "normal" users.Discussion:https://postgr.es/m/20230621221208.vhsqgduwfpzwxnpg@awork3.anarazel.de1 parent8aac975 commit83ecfa9
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1893 | 1893 |
| |
1894 | 1894 |
| |
1895 | 1895 |
| |
| 1896 | + | |
1896 | 1897 |
| |
1897 | 1898 |
| |
1898 | 1899 |
| |
1899 | 1900 |
| |
1900 | 1901 |
| |
| 1902 | + | |
| 1903 | + | |
1901 | 1904 |
| |
| 1905 | + | |
1902 | 1906 |
| |
1903 | 1907 |
| |
1904 | 1908 |
| |
|
0 commit comments
Comments
(0)