forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbe72b9c
committed
Fix autovacuum work item error handling
In autovacuum's "work item" processing, a few strings were allocated inthe current transaction's memory context, which goes away during errorhandling; if an error happened during execution of the work item, thepfree() calls to clean up afterwards would try to release already-releasedmemory, possibly leading to a crash. In branch master, this was alreadyfixed by commit335f3d0, so backpatch that to REL_10_STABLE to fixthe problem there too.As a secondary problem, verify that the autovacuum worker is connectedto the right database for each work item; otherwise some items would bediscarded by workers in other databases.Reported-by: Justin PryzbyDiscussion:https://postgr.es/m/20171014035732.GB31726@telsasoft.com1 parent77954f9 commitbe72b9c
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2531 | 2531 |
| |
2532 | 2532 |
| |
2533 | 2533 |
| |
| 2534 | + | |
| 2535 | + | |
2534 | 2536 |
| |
2535 | 2537 |
| |
2536 | 2538 |
| |
| |||
2606 | 2608 |
| |
2607 | 2609 |
| |
2608 | 2610 |
| |
2609 |
| - | |
2610 |
| - | |
2611 |
| - | |
| 2611 | + | |
2612 | 2612 |
| |
2613 | 2613 |
| |
2614 | 2614 |
| |
|
0 commit comments
Comments
(0)