aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-09-24 00:18:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-09-24 00:18:17 -0400
commitd2292f6405670e1fdac13998f87b4348c71fb9e6 (patch)
tree9051cf4918117ba03eb53fa91439a1fd2665b0ac /src
parente0327d103013c41c83f41a05187b90956b38c5b7 (diff)
downloadpostgresql-d2292f6405670e1fdac13998f87b4348c71fb9e6.tar.gz
postgresql-d2292f6405670e1fdac13998f87b4348c71fb9e6.zip
Prevent emitting "ALTER VIEW foo SET ()".
Small oversight in commit 0f524ea0cf388a149f362e48a33c01662eeddc04 ... per report from Grazvydas Valeika.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index dbf589a72b6..e3d188708bd 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -13755,7 +13755,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),