提交 ed940ab6 编写于 作者: A Adam Lee

pg_dump: fix dropping temp external table failure on CI

fmtQualifiedId() and fmtId() share the same buffer, we cannot
use any of them until we finished calling.
上级 cd055f99
......@@ -14539,9 +14539,9 @@ dumpTableSchema(Archive *fout, TableInfo *tbinfo)
char tmpExtTable[500] = {0};
relname = pg_strdup(PQgetvalue(res, i, i_relname));
snprintf(tmpExtTable, sizeof(tmpExtTable), "%s%s", relname, EXT_PARTITION_NAME_POSTFIX);
const char *qualTmpExtTable = fmtQualifiedId(fout->remoteVersion,
tbinfo->dobj.namespace->dobj.name,
tmpExtTable);
char *qualTmpExtTable = pg_strdup(fmtQualifiedId(fout->remoteVersion,
tbinfo->dobj.namespace->dobj.name,
tmpExtTable));
appendPQExpBuffer(q, "ALTER TABLE %s ", qualrelname);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册