From 1a123e3b136bf38ebf5f7a97b358306998f8a61f Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Wed, 2 Oct 2024 13:07:31 +0200 Subject: [PATCH] Remove superfluous PQExpBuffer resetting Since the buffer was just created, there is no reason to immediately reset it. Reviewed-by: Ranier Vilela Discussion: https://postgr.es/m/C2F05B3C-1414-45DD-AE09-6FEE4D0F89BD@yesql.se --- 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 130b80775db..c29a2030af3 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -4290,8 +4290,6 @@ getPublications(Archive *fout) query = createPQExpBuffer(); - resetPQExpBuffer(query); - /* Get the publications. */ if (fout->remoteVersion >= 130000) appendPQExpBufferStr(query,