From: Bruce Momjian Date: Wed, 31 Jul 2013 15:37:17 +0000 (-0400) Subject: pg_dump/pg_dumpall: remove unnecessary SQL trailing semicolons X-Git-Tag: REL9_4_BETA1~1254 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8eb29194fc1711308804e8d4238a002a1cd35afe;p=postgresql pg_dump/pg_dumpall: remove unnecessary SQL trailing semicolons Patch by Ian Lawrence Barwick --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 8beb5d152d..e1ef55f69a 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -12761,7 +12761,6 @@ createViewAsClause(Archive *fout, TableInfo *tbinfo) appendPQExpBuffer(query, "SELECT definition AS viewdef " "FROM pg_views WHERE viewname = "); appendStringLiteralAH(query, tbinfo->dobj.name, fout); - appendPQExpBuffer(query, ";"); } res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK); diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 12533073d8..615dd48f57 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -1428,8 +1428,6 @@ dumpDatabaseConfig(PGconn *conn, const char *dbname) if (server_version >= 90000) appendPQExpBuffer(buf, ")"); - appendPQExpBuffer(buf, ";"); - res = executeQuery(conn, buf->data); if (PQntuples(res) == 1 && !PQgetisnull(res, 0, 0))