Skip to content

Commit d2292f6

Browse files
committed
Prevent emitting "ALTER VIEW foo SET ()".
Small oversight in commit 0f524ea ... per report from Grazvydas Valeika.
1 parent e0327d1 commit d2292f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13755,7 +13755,7 @@ dumpRule(Archive *fout, RuleInfo *rinfo)
1375513755
/*
1375613756
* Apply view's reloptions when its ON SELECT rule is separate.
1375713757
*/
13758-
if (rinfo->reloptions)
13758+
if (rinfo->reloptions && strlen(rinfo->reloptions) > 0)
1375913759
{
1376013760
appendPQExpBuffer(cmd, "ALTER VIEW %s SET (%s);\n",
1376113761
fmtId(tbinfo->dobj.name),

0 commit comments

Comments
 (0)