Skip to content

Commit ce9eee3

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

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
@@ -13904,7 +13904,7 @@ dumpRule(Archive *fout, RuleInfo *rinfo)
1390413904
/*
1390513905
* Apply view's reloptions when its ON SELECT rule is separate.
1390613906
*/
13907-
if (rinfo->reloptions)
13907+
if (rinfo->reloptions && strlen(rinfo->reloptions) > 0)
1390813908
{
1390913909
appendPQExpBuffer(cmd, "ALTER VIEW %s SET (%s);\n",
1391013910
fmtId(tbinfo->dobj.name),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy