Skip to content

Commit 3f78b17

Browse files
committed
Don't allow ALTER MATERIALIZED VIEW ADD UNIQUE.
Was accidentally allowed, but not documented and lacked support for rename or drop once created. Per report from Noah Misch.
1 parent 62e28b3 commit 3f78b17

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
case AT_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)
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