projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e28b3
)
Don't allow ALTER MATERIALIZED VIEW ADD UNIQUE.
author
Kevin Grittner
<
[email protected]
>
Thu, 15 Aug 2013 18:14:48 +0000
(13:14 -0500)
committer
Kevin Grittner
<
[email protected]
>
Thu, 15 Aug 2013 18:14:48 +0000
(13:14 -0500)
Was accidentally allowed, but not documented and lacked support
for rename or drop once created.
Per report from Noah Misch.
src/backend/commands/tablecmds.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/tablecmds.c
b/src/backend/commands/tablecmds.c
index cb87d906ef8198fec54a7859cff69976d0926335..adc74dd7e40228d63538137c4f97fd580910ce00 100644
(file)
--- a/
src/backend/commands/tablecmds.c
+++ b/
src/backend/commands/tablecmds.c
@@
-3035,7
+3035,7
@@
ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd,
pass = AT_PASS_DROP;
break;
case AT_AddIndex: /* ADD INDEX */
- ATSimplePermissions(rel, ATT_TABLE
| ATT_MATVIEW
);
+ ATSimplePermissions(rel, ATT_TABLE);
/* This command never recurses */
/* No command-specific prep needed */
pass = AT_PASS_ADD_INDEX;