Skip to content

Commit 8eb2919

Browse files
committed
pg_dump/pg_dumpall: remove unnecessary SQL trailing semicolons
Patch by Ian Lawrence Barwick
1 parent d074b4e commit 8eb2919

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12761,7 +12761,6 @@ createViewAsClause(Archive *fout, TableInfo *tbinfo)
1276112761
appendPQExpBuffer(query, "SELECT definition AS viewdef "
1276212762
"FROM pg_views WHERE viewname = ");
1276312763
appendStringLiteralAH(query, tbinfo->dobj.name, fout);
12764-
appendPQExpBuffer(query, ";");
1276512764
}
1276612765

1276712766
res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK);

src/bin/pg_dump/pg_dumpall.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,8 +1428,6 @@ dumpDatabaseConfig(PGconn *conn, const char *dbname)
14281428
if (server_version >= 90000)
14291429
appendPQExpBuffer(buf, ")");
14301430

1431-
appendPQExpBuffer(buf, ";");
1432-
14331431
res = executeQuery(conn, buf->data);
14341432
if (PQntuples(res) == 1 &&
14351433
!PQgetisnull(res, 0, 0))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy