Commit ce9eee39 authored by Tom Lane's avatar Tom Lane

Prevent emitting "ALTER VIEW foo SET ()".

Small oversight in commit 0f524ea0 ...
per report from Grazvydas Valeika.
parent ea7d5049
...@@ -13904,7 +13904,7 @@ dumpRule(Archive *fout, RuleInfo *rinfo) ...@@ -13904,7 +13904,7 @@ dumpRule(Archive *fout, RuleInfo *rinfo)
/* /*
* Apply view's reloptions when its ON SELECT rule is separate. * Apply view's reloptions when its ON SELECT rule is separate.
*/ */
if (rinfo->reloptions) if (rinfo->reloptions && strlen(rinfo->reloptions) > 0)
{ {
appendPQExpBuffer(cmd, "ALTER VIEW %s SET (%s);\n", appendPQExpBuffer(cmd, "ALTER VIEW %s SET (%s);\n",
fmtId(tbinfo->dobj.name), fmtId(tbinfo->dobj.name),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment