Remove superfluous PQExpBuffer resetting
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 2 Oct 2024 11:07:31 +0000 (13:07 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 2 Oct 2024 11:07:31 +0000 (13:07 +0200)
Since the buffer was just created, there is no reason to immediately
reset it.

Reviewed-by: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/C2F05B3C-1414-45DD-AE09-6FEE4D0F89BD@yesql.se

src/bin/pg_dump/pg_dump.c

index 130b80775dbf9cd693fc08e1f653c9d8b6cb2f4e..c29a2030af30e9c915492ef90a9a54f3f375db9e 100644 (file)
@@ -4290,8 +4290,6 @@ getPublications(Archive *fout)
 
        query = createPQExpBuffer();
 
-       resetPQExpBuffer(query);
-
        /* Get the publications. */
        if (fout->remoteVersion >= 130000)
                appendPQExpBufferStr(query,