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

Commitcdcddc4

Browse files
committed
Don't allow ALTER MATERIALIZED VIEW ADD UNIQUE.
Was accidentally allowed, but not documented and lacked supportfor rename or drop once created.Per report from Noah Misch.
1 parentd2fa20a commitcdcddc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3031,7 +3031,7 @@ ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd,
30313031
pass=AT_PASS_DROP;
30323032
break;
30333033
caseAT_AddIndex:/* ADD INDEX */
3034-
ATSimplePermissions(rel,ATT_TABLE |ATT_MATVIEW);
3034+
ATSimplePermissions(rel,ATT_TABLE);
30353035
/* This command never recurses */
30363036
/* No command-specific prep needed */
30373037
pass=AT_PASS_ADD_INDEX;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp