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

Commit3f78b17

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 parent62e28b3 commit3f78b17

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
@@ -3035,7 +3035,7 @@ ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd,
30353035
pass=AT_PASS_DROP;
30363036
break;
30373037
caseAT_AddIndex:/* ADD INDEX */
3038-
ATSimplePermissions(rel,ATT_TABLE |ATT_MATVIEW);
3038+
ATSimplePermissions(rel,ATT_TABLE);
30393039
/* This command never recurses */
30403040
/* No command-specific prep needed */
30413041
pass=AT_PASS_ADD_INDEX;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp