Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d8c774

Browse files
committed
Fix breakage induced by recent patch (careless use of fmtId()).
1 parent86f5fcf commit6d8c774

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.329 2003/05/08 22:19:56 tgl Exp $
15+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.330 2003/05/17 15:53:12 tgl Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -1173,8 +1173,10 @@ dumpClasses(const TableInfo *tblinfo, const int numTables, Archive *fout,
11731173
/* Dump/restore using COPY */
11741174
dumpFn=dumpClasses_nodumpData;
11751175
resetPQExpBuffer(copyBuf);
1176-
appendPQExpBuffer(copyBuf,"COPY %s %s %sFROM stdin;\n",
1177-
fmtId(tblinfo[i].relname),
1176+
/* must use 2 steps here 'cause fmtId is nonreentrant */
1177+
appendPQExpBuffer(copyBuf,"COPY %s ",
1178+
fmtId(tblinfo[i].relname));
1179+
appendPQExpBuffer(copyBuf,"%s %sFROM stdin;\n",
11781180
fmtCopyColumnList(&(tblinfo[i])),
11791181
(oids&&tblinfo[i].hasoids) ?"WITH OIDS " :"");
11801182
copyStmt=copyBuf->data;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp