pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix various memory leaks in psql's describe commands \d* 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix various memory leaks in psql's describe commands \d* @ 2022-07-21 01:42 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2022-07-21 01:42 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix various memory leaks in psql's describe commands \d* Most of these have been introduced in d2d3547 with the new pattern validation logic, and would leak memory worth an amount of one PQExpBuffer each time (as of 256 bytes at minimum, possibly more). Most of the patch has been written by Tang Haiying, with a few tweaks coming from Álvaro Herrera. Reported-by: Tang Haiying Author: Tang Haiying, Álvaro Herrera Reviewed-by: Mark Dilger, Andres Freund, Álvaro Herrera, Tom Lane, Japin Li, Michael Paquier, Junwang Zhao Backpatch-through: 15 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/171ab95f64493f30dccf34bb1cafaa7b4957cd4e Modified Files -------------- src/bin/psql/describe.c | 235 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 190 insertions(+), 45 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix various memory leaks in psql's describe commands \d* @ 2022-07-21 01:42 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2022-07-21 01:42 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix various memory leaks in psql's describe commands \d* Most of these have been introduced in d2d3547 with the new pattern validation logic, and would leak memory worth an amount of one PQExpBuffer each time (as of 256 bytes at minimum, possibly more). Most of the patch has been written by Tang Haiying, with a few tweaks coming from Álvaro Herrera. Reported-by: Tang Haiying Author: Tang Haiying, Álvaro Herrera Reviewed-by: Mark Dilger, Andres Freund, Álvaro Herrera, Tom Lane, Japin Li, Michael Paquier, Junwang Zhao Backpatch-through: 15 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/eac3e00f8140e5a17b8021ba14e2239e3fd2a640 Modified Files -------------- src/bin/psql/describe.c | 235 ++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 190 insertions(+), 45 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-07-21 01:42 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2022-07-21 01:42 pgsql: Fix various memory leaks in psql's describe commands \d* Michael Paquier <michael@paquier.xyz> 2022-07-21 01:42 pgsql: Fix various memory leaks in psql's describe commands \d* Michael Paquier <michael@paquier.xyz>
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