Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce9eee3

Browse files
committed
Prevent emitting "ALTER VIEW foo SET ()".
Small oversight in commit0f524ea ...per report from Grazvydas Valeika.
1 parentea7d504 commitce9eee3

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)

[8]ページ先頭

©2009-2025 Movatter.jp