pgsql: Fix memory leak in GIN index scans. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix memory leak in GIN index scans.
Date
Msg-id E1aquxx-0007Kj-2f@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix memory leak in GIN index scans.

The code had a query-lifespan memory leak when encountering GIN entries
that have posting lists (rather than posting trees, ie, there are a
relatively small number of heap tuples containing this index key value).
With a suitable data distribution this could add up to a lot of leakage.
Problem seems to have been introduced by commit 36a35c550, so back-patch
to 9.4.

Julien Rouhaud

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/edd57377f0db00a66d39029aa5239a96280887ef

Modified Files
--------------
src/backend/access/gin/ginget.c | 1 +
1 file changed, 1 insertion(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Rethink \crosstabview's argument parsing logic.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix memory leak in GIN index scans.