pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: pgoutput: Fix memory leak due to RelationSyncEntry.map. 2+ messages / 1 participants [nested] [flat]
* pgsql: pgoutput: Fix memory leak due to RelationSyncEntry.map. @ 2021-06-01 08:58 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Amit Kapila @ 2021-06-01 08:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pgoutput: Fix memory leak due to RelationSyncEntry.map. Release memory allocated when creating the tuple-conversion map and its component TupleDescs when its owning sync entry is invalidated. TupleDescs must also be freed when no map is deemed necessary, to begin with. Reported-by: Andres Freund Author: Amit Langote Reviewed-by: Takamichi Osumi, Amit Kapila Backpatch-through: 13, where it was introduced Discussion: https://postgr.es/m/MEYP282MB166933B1AB02B4FE56E82453B64D9@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/eb89cb43a0d0e401e71b8e2345b5f5bc8b2755a1 Modified Files -------------- src/backend/replication/pgoutput/pgoutput.c | 46 ++++++++++++++++++++++++----- src/test/subscription/t/013_partition.pl | 28 +++++++++++++++++- 2 files changed, 65 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: pgoutput: Fix memory leak due to RelationSyncEntry.map. @ 2021-06-01 08:58 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Amit Kapila @ 2021-06-01 08:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pgoutput: Fix memory leak due to RelationSyncEntry.map. Release memory allocated when creating the tuple-conversion map and its component TupleDescs when its owning sync entry is invalidated. TupleDescs must also be freed when no map is deemed necessary, to begin with. Reported-by: Andres Freund Author: Amit Langote Reviewed-by: Takamichi Osumi, Amit Kapila Backpatch-through: 13, where it was introduced Discussion: https://postgr.es/m/MEYP282MB166933B1AB02B4FE56E82453B64D9@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d2505681211b4803cae916e9f4c2331943f851dc Modified Files -------------- src/backend/replication/pgoutput/pgoutput.c | 49 ++++++++++++++++++++++++----- src/test/subscription/t/013_partition.pl | 28 ++++++++++++++++- 2 files changed, 69 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-06-01 08:58 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-06-01 08:58 pgsql: pgoutput: Fix memory leak due to RelationSyncEntry.map. Amit Kapila <akapila@postgresql.org> 2021-06-01 08:58 pgsql: pgoutput: Fix memory leak due to RelationSyncEntry.map. Amit Kapila <akapila@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