- Notifications
You must be signed in to change notification settings - Fork5
Commit46bd14a
committed
Fix small query-lifespan memory leak in bulk updates.
When there is an identifiable REPLICA IDENTITY index on the target table,heap_update leaks the id_attrs bitmapset. That's not many bytes, but itadds up over enough rows, since the code typically runs in a query-lifespancontext. Bug introduced in commite55704d, which did a rather poor jobof cloning the existing use-pattern for RelationGetIndexAttrBitmap().Per bug #14293 from Zhou Digoal. Back-patch to 9.4 where the bug wasintroduced.Report: <20160824114320.15676.45171@wrigleys.postgresql.org>1 parent25fe5f7 commit46bd14a
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3579 | 3579 |
| |
3580 | 3580 |
| |
3581 | 3581 |
| |
| 3582 | + | |
3582 | 3583 |
| |
3583 | 3584 |
| |
3584 | 3585 |
| |
| |||
4031 | 4032 |
| |
4032 | 4033 |
| |
4033 | 4034 |
| |
| 4035 | + | |
4034 | 4036 |
| |
4035 | 4037 |
| |
4036 | 4038 |
| |
|
0 commit comments
Comments
(0)