aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuildbuffers.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-08-24 22:20:01 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-08-24 22:20:26 -0400
commit006fb80a569179d3df4932857818925667e8d581 (patch)
treea958558dce598b9acf21a64895bfdb9b84d2ec39 /src/backend/access/gist/gistbuildbuffers.c
parent1414d490f7eee23bf3544953a47340e9b54fcf29 (diff)
downloadpostgresql-006fb80a569179d3df4932857818925667e8d581.tar.gz
postgresql-006fb80a569179d3df4932857818925667e8d581.zip
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 e55704d8b, 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>
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions