pgsql: Fix small query-lifespan memory leak in bulk updates.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix small query-lifespan memory leak in bulk updates.
Дата
Msg-id E1bckHa-00013u-O3@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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>

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/566afa15c8dc64430dfb1e95c661e5875863253c

Modified Files
--------------
src/backend/access/heap/heapam.c | 2 ++
1 file changed, 2 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix small query-lifespan memory leak in bulk updates.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix instability in parallel regression tests.