pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix memory leak in Memoize code
4+ messages / 1 participants
[nested] [flat]

* pgsql: Fix memory leak in Memoize code
@ 2023-10-05 07:31 David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: David Rowley @ 2023-10-05 07:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix memory leak in Memoize code

Ensure we switch to the per-tuple memory context to prevent any memory
leaks of detoasted Datums in MemoizeHash_hash() and MemoizeHash_equal().

Reported-by: Orlov Aleksej
Author: Orlov Aleksej, David Rowley
Discussion: https://postgr.es/m/83281eed63c74e4f940317186372abfd%40cft.ru
Backpatch-through: 14, where Memoize was added

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0b053e78b5990cd01e7169ee5bd2bb8e4045deea

Modified Files
--------------
src/backend/executor/nodeMemoize.c | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)



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

* pgsql: Fix memory leak in Memoize code
@ 2023-10-05 07:31 David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: David Rowley @ 2023-10-05 07:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix memory leak in Memoize code

Ensure we switch to the per-tuple memory context to prevent any memory
leaks of detoasted Datums in MemoizeHash_hash() and MemoizeHash_equal().

Reported-by: Orlov Aleksej
Author: Orlov Aleksej, David Rowley
Discussion: https://postgr.es/m/83281eed63c74e4f940317186372abfd%40cft.ru
Backpatch-through: 14, where Memoize was added

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/31b2b2d72d9c50be415c6340ebf4ad83a472590c

Modified Files
--------------
src/backend/executor/nodeMemoize.c | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)



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

* pgsql: Fix memory leak in Memoize code
@ 2023-10-05 07:32 David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: David Rowley @ 2023-10-05 07:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix memory leak in Memoize code

Ensure we switch to the per-tuple memory context to prevent any memory
leaks of detoasted Datums in MemoizeHash_hash() and MemoizeHash_equal().

Reported-by: Orlov Aleksej
Author: Orlov Aleksej, David Rowley
Discussion: https://postgr.es/m/83281eed63c74e4f940317186372abfd%40cft.ru
Backpatch-through: 14, where Memoize was added

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/689af6db6c76a7966efdb702326f85fa0d8a04ef

Modified Files
--------------
src/backend/executor/nodeMemoize.c | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)



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

* pgsql: Fix memory leak in Memoize code
@ 2023-10-05 07:32 David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: David Rowley @ 2023-10-05 07:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix memory leak in Memoize code

Ensure we switch to the per-tuple memory context to prevent any memory
leaks of detoasted Datums in MemoizeHash_hash() and MemoizeHash_equal().

Reported-by: Orlov Aleksej
Author: Orlov Aleksej, David Rowley
Discussion: https://postgr.es/m/83281eed63c74e4f940317186372abfd%40cft.ru
Backpatch-through: 14, where Memoize was added

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e4b95b9b02b24c752210839304891e855176e394

Modified Files
--------------
src/backend/executor/nodeMemoize.c | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)



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


end of thread, other threads:[~2023-10-05 07:32 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-10-05 07:31 pgsql: Fix memory leak in Memoize code David Rowley <drowley@postgresql.org>
2023-10-05 07:31 pgsql: Fix memory leak in Memoize code David Rowley <drowley@postgresql.org>
2023-10-05 07:32 pgsql: Fix memory leak in Memoize code David Rowley <drowley@postgresql.org>
2023-10-05 07:32 pgsql: Fix memory leak in Memoize code David Rowley <drowley@postgresql.org>

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