mirror of
https://github.com/postgres/postgres.git
synced 2026-07-16 23:05:04 -04:00
Add two missing cases to ATWrongRelkindError.
This way, we produce a better error message if someone tries to do something like ALTER INDEX .. ALTER COLUMN .. SET STORAGE. Amit Langote
This commit is contained in:
parent
ac9a01615c
commit
17b07afae3
1 changed files with 6 additions and 0 deletions
|
|
@ -4339,6 +4339,9 @@ ATWrongRelkindError(Relation rel, int allowed_targets)
|
|||
case ATT_TABLE | ATT_VIEW:
|
||||
msg = _("\"%s\" is not a table or view");
|
||||
break;
|
||||
case ATT_TABLE | ATT_VIEW | ATT_FOREIGN_TABLE:
|
||||
msg = _("\"%s\" is not a table, view or foreign table");
|
||||
break;
|
||||
case ATT_TABLE | ATT_VIEW | ATT_MATVIEW | ATT_INDEX:
|
||||
msg = _("\"%s\" is not a table, view, materialized view, or index");
|
||||
break;
|
||||
|
|
@ -4348,6 +4351,9 @@ ATWrongRelkindError(Relation rel, int allowed_targets)
|
|||
case ATT_TABLE | ATT_MATVIEW | ATT_INDEX:
|
||||
msg = _("\"%s\" is not a table, materialized view, or index");
|
||||
break;
|
||||
case ATT_TABLE | ATT_MATVIEW | ATT_FOREIGN_TABLE:
|
||||
msg = _("\"%s\" is not a table, materialized view, or foreign table");
|
||||
break;
|
||||
case ATT_TABLE | ATT_FOREIGN_TABLE:
|
||||
msg = _("\"%s\" is not a table or foreign table");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue