Fix compilation error introduced in 0e3770c14c3fb1858192feb7240343cb35ba013c
authorPavan Deolasee <[email protected]>
Fri, 3 Aug 2018 04:18:18 +0000 (09:48 +0530)
committerPavan Deolasee <[email protected]>
Fri, 3 Aug 2018 04:18:18 +0000 (09:48 +0530)
Per report and patch by Wanglin

src/bin/pg_dump/pg_dump.c

index 691c9194271b5765f0cc51455cc1bf90b8d0c6d3..8b42ed92bcf584e808b76c944777d15fba4a9d40 100644 (file)
@@ -16762,7 +16762,7 @@ dumpSequenceData(Archive *fout, TableDataInfo *tdinfo)
                 */
                resetPQExpBuffer(query);
                appendPQExpBufferStr(query, "SELECT pg_catalog.nextval(");
-               appendStringLiteralAH(query, fmtQualifiedDumpable(tbinfo), fout);
+               appendStringLiteralAH(query, fmtId(tbinfo->dobj.name), fout);
                appendPQExpBuffer(query, ");\n");
                res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK);
 
@@ -16770,7 +16770,7 @@ dumpSequenceData(Archive *fout, TableDataInfo *tdinfo)
                {
                        write_msg(NULL, "query to get nextval of sequence \"%s\" "
                                                        "returned %d rows (expected 1)\n",
-                                                       fmtQualifiedDumpable(tbinfo), PQntuples(res));
+                                                       fmtId(tbinfo->dobj.name), PQntuples(res));
                        exit_nicely(1);
                }