diff options
| author | Kevin Grittner | 2013-08-15 18:14:48 +0000 |
|---|---|---|
| committer | Kevin Grittner | 2013-08-15 18:14:48 +0000 |
| commit | 3f78b1715c8c1d6655d169e6c8ac384c9a01ac60 (patch) | |
| tree | 96e2cbc683230848bead839310732c1596d09b09 /src/backend | |
| parent | 62e28b3e41353dd79802113b3e9f2a81246146f0 (diff) | |
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')
| -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 cb87d906ef8..adc74dd7e40 100644 --- 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; |
