pg_dumpall: simplify coding of dropDBs()
Álvaro Herrera <alvherre@kurilemu.de>
pg_dumpall: simplify coding of dropDBs() There's no need for a StringInfo when all you want is a string being constructed in a single pass. Author: Álvaro Herrera <alvherre@kurilemu.de> Reported-by: Ranier Vilela <ranier.vf@gmail.com> Reviewed-by: Yang Yuanzhuo <1197620467@qq.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Reviewed-by: Andrew Dunstan <andrew@dunslane.net> Discussion: https://postgr.es/m/CAEudQAq2wyXZRdsh+wVHcOrungPU+_aQeQU12wbcgrmE0bQovA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/pg_dumpall.c | modified | +7 −10 |
Discussion
- Avoid resource leak (src/bin/pg_dump/pg_dumpall.c) 11 messages · 2026-03-08 → 2026-03-10