Re: memory leak in trigger handling (since PG12)
Tomas Vondra <tomas.vondra@enterprisedb.com>
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Cc: Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-06-22T14:16:06Z
Lists: pgsql-hackers
Attachments
- triggers-context-fix.patch (text/x-patch) patch
On 6/22/23 13:46, Tomas Vondra wrote: > ... > > I haven't tried the reproducer, but I think I see the issue - we store > the bitmap as part of the event to be executed later, but the bitmap is > in per-tuple context and gets reset. So I guess we need to copy it into > the proper long-lived context (e.g. AfterTriggerEvents). > > I'll get that fixed. > Alexander, can you try if this fixes the issue for you? regard -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Fix oversight in handling of modifiedCols since f24523672d
- 984c23f6f592 13.12 landed
- 260dbf19a5b4 14.9 landed
- 7ae4e786892f 15.4 landed
- 9cf85093b559 16.0 landed
- ce5aaea8cd32 17.0 landed
-
Use per-tuple context in ExecGetAllUpdatedCols
- f24523672de9 16.0 landed
- 54e1b8587234 12.16 landed
- c504aa857071 13.12 landed
- 7f528e96c501 14.9 landed
- ee87f8b63aee 15.4 landed
-
Generated columns
- fc22b6623b6b 12.0 cited