提交 a82c9961 编写于 作者: C Chris Hajas 提交者: GitHub

Fix dump of functions in pg_dump to not add extra semicolon (#2563)

pg_dump will append an extra semicolon to function definitions prior to
printing SET statements for function GUCs. This results in the SET statements
actually being printed outside the CREATE FUNCTION statement, so the GUCs are
set on a session level rather than being set for the scope of the function.
上级 c65bf641
......@@ -7307,8 +7307,6 @@ dumpFunc(Archive *fout, FuncInfo *finfo)
else if (prodataaccess[0] == PRODATAACCESS_MODIFIES)
appendPQExpBuffer(q, " MODIFIES SQL DATA");
appendPQExpBuffer(q, ";\n");
for (i = 0; i < nconfigitems; i++)
{
/* we feel free to scribble on configitems[] here */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册