mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +03:00
Fix breakage induced by recent patch (careless use of fmtId()).
This commit is contained in:
parent
86f5fcfeb7
commit
6d8c774f55
@ -12,7 +12,7 @@
|
|||||||
* by PostgreSQL
|
* by PostgreSQL
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.329 2003/05/08 22:19:56 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.330 2003/05/17 15:53:12 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1173,8 +1173,10 @@ dumpClasses(const TableInfo *tblinfo, const int numTables, Archive *fout,
|
|||||||
/* Dump/restore using COPY */
|
/* Dump/restore using COPY */
|
||||||
dumpFn = dumpClasses_nodumpData;
|
dumpFn = dumpClasses_nodumpData;
|
||||||
resetPQExpBuffer(copyBuf);
|
resetPQExpBuffer(copyBuf);
|
||||||
appendPQExpBuffer(copyBuf, "COPY %s %s %sFROM stdin;\n",
|
/* must use 2 steps here 'cause fmtId is nonreentrant */
|
||||||
fmtId(tblinfo[i].relname),
|
appendPQExpBuffer(copyBuf, "COPY %s ",
|
||||||
|
fmtId(tblinfo[i].relname));
|
||||||
|
appendPQExpBuffer(copyBuf, "%s %sFROM stdin;\n",
|
||||||
fmtCopyColumnList(&(tblinfo[i])),
|
fmtCopyColumnList(&(tblinfo[i])),
|
||||||
(oids && tblinfo[i].hasoids) ? "WITH OIDS " : "");
|
(oids && tblinfo[i].hasoids) ? "WITH OIDS " : "");
|
||||||
copyStmt = copyBuf->data;
|
copyStmt = copyBuf->data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user