From f1a0952d441dfcfe45e77d939598b427c1e40bb9 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Wed, 3 Jul 2024 09:11:05 +0200 Subject: [PATCH 1/2] Remove superfluous PQExpBuffer resetting Since the buffer was just created, there is no reason to immediately reset it. --- src/bin/pg_dump/pg_dump.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 7aec016a9f..7ccf943522 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -4198,8 +4198,6 @@ getPublications(Archive *fout) query = createPQExpBuffer(); - resetPQExpBuffer(query); - /* Get the publications. */ if (fout->remoteVersion >= 130000) appendPQExpBufferStr(query, -- 2.39.3 (Apple Git-146)