Prevent emitting "ALTER VIEW foo SET ()".

Small oversight in commit 0f524ea0cf ...
per report from Grazvydas Valeika.
pull/3/head
Tom Lane 13 years ago
parent ea7d504998
commit ce9eee39d1
  1. 2
      src/bin/pg_dump/pg_dump.c

@ -13904,7 +13904,7 @@ dumpRule(Archive *fout, RuleInfo *rinfo)
/*
* 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",
fmtId(tbinfo->dobj.name),

Loading…
Cancel
Save