]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_dumpall: simplify coding of dropDBs()
authorÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 10 Mar 2026 15:00:19 +0000 (16:00 +0100)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 10 Mar 2026 15:00:19 +0000 (16:00 +0100)
commita198c26dede50a1fd4c22fb134b53ce8d4f8f5e3
treec15a434ab7728693863a21d3a8b79f7214abfed9
parent59bae234352d10535da7e655bcd7bc8a1339f57f
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
src/bin/pg_dump/pg_dumpall.c