diff options
author | Kevin Grittner <kgrittn@postgresql.org> | 2013-08-15 13:16:45 -0500 |
---|---|---|
committer | Kevin Grittner <kgrittn@postgresql.org> | 2013-08-15 13:16:45 -0500 |
commit | cdcddc4a5a06952eafc65907c25c21510c7d54c0 (patch) | |
tree | 5720462412dba938a95bb06a1bdcafbd3be74c01 /src/backend/commands/tablecmds.c | |
parent | d2fa20acdd67db00b48fcc4b9a13b998c1c8bb54 (diff) | |
download | postgresql-cdcddc4a5a06952eafc65907c25c21510c7d54c0.tar.gz postgresql-cdcddc4a5a06952eafc65907c25c21510c7d54c0.zip |
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.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 07c0816abbf..6631be8eeb4 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -3031,7 +3031,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; |