Commit 006fb80
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 it
adds up over enough rows, since the code typically runs in a query-lifespan
context. Bug introduced in commit e55704d, which did a rather poor job
of cloning the existing use-pattern for RelationGetIndexAttrBitmap().
Per bug #14293 from Zhou Digoal. Back-patch to 9.4 where the bug was
introduced.
Report: <20160824114320.15676.45171@wrigleys.postgresql.org>1 parent 1414d49 commit 006fb80
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3802 | 3802 | | |
3803 | 3803 | | |
3804 | 3804 | | |
| 3805 | + | |
3805 | 3806 | | |
3806 | 3807 | | |
3807 | 3808 | | |
| |||
4268 | 4269 | | |
4269 | 4270 | | |
4270 | 4271 | | |
| 4272 | + | |
4271 | 4273 | | |
4272 | 4274 | | |
4273 | 4275 | | |
| |||
0 commit comments