pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix small query-lifespan memory leak introduced by 8.4 change in
5+ messages / 2 participants
[nested] [flat]

* pgsql: Fix small query-lifespan memory leak introduced by 8.4 change in
@ 2008-10-10 14:17  Tom Lane <tgl@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: tgl@postgresql.org @ 2008-10-10 14:17 UTC (permalink / raw)
  To: pgsql-committers

Log Message:
-----------
Fix small query-lifespan memory leak introduced by 8.4 change in index AM API
for bitmap index scans.  Per report and test case from Kevin Grittner.

Modified Files:
--------------
    pgsql/src/backend/access/index:
        indexam.c (r1.110 -> r1.111)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/index/indexam.c?r1=1.110&r2=1....)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix small query-lifespan memory leak in bulk updates.
@ 2016-08-25 02:20  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-08-25 02:20 UTC (permalink / raw)
  To: 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_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/006fb80a569179d3df4932857818925667e8d581

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


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix small query-lifespan memory leak in bulk updates.
@ 2016-08-25 02:20  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-08-25 02:20 UTC (permalink / raw)
  To: 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(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix small query-lifespan memory leak in bulk updates.
@ 2016-08-25 02:20  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-08-25 02:20 UTC (permalink / raw)
  To: 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_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/46bd14a108ffde3e0db68ccae0fd88a4128c8e84

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


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix small query-lifespan memory leak in bulk updates.
@ 2016-08-25 02:20  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-08-25 02:20 UTC (permalink / raw)
  To: 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
------
master

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

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


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2016-08-25 02:20 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-10-10 14:17 pgsql: Fix small query-lifespan memory leak introduced by 8.4 change in Tom Lane <tgl@postgresql.org>
2016-08-25 02:20 pgsql: Fix small query-lifespan memory leak in bulk updates. Tom Lane <tgl@sss.pgh.pa.us>
2016-08-25 02:20 pgsql: Fix small query-lifespan memory leak in bulk updates. Tom Lane <tgl@sss.pgh.pa.us>
2016-08-25 02:20 pgsql: Fix small query-lifespan memory leak in bulk updates. Tom Lane <tgl@sss.pgh.pa.us>
2016-08-25 02:20 pgsql: Fix small query-lifespan memory leak in bulk updates. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox