mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Prevent emitting "ALTER VIEW foo SET ()".
Small oversight in commit 0f524ea0cf388a149f362e48a33c01662eeddc04 ... per report from Grazvydas Valeika.
This commit is contained in:
parent
ea7d504998
commit
ce9eee39d1
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user