Fix incorrect message in ATWrongRelkindError.
authorRobert Haas <rhaas@postgresql.org>
Wed, 28 Oct 2015 10:44:47 +0000 (11:44 +0100)
committerRobert Haas <rhaas@postgresql.org>
Wed, 28 Oct 2015 10:52:31 +0000 (11:52 +0100)
Mistake introduced by commit 3bf3ab8c563699138be02f9dc305b7b77a724307.

Etsuro Fujita

src/backend/commands/tablecmds.c

index 5321b5f4781e23d90d2290ad1315d671d1ab8050..75bdf7ba0c45171e9ecd15754f11f03734999616 100644 (file)
@@ -4148,7 +4148,7 @@ ATWrongRelkindError(Relation rel, int allowed_targets)
                        msg = _("\"%s\" is not a table, composite type, or foreign table");
                        break;
                case ATT_TABLE | ATT_MATVIEW | ATT_INDEX | ATT_FOREIGN_TABLE:
-                       msg = _("\"%s\" is not a table, materialized view, composite type, or foreign table");
+                       msg = _("\"%s\" is not a table, materialized view, index, or foreign table");
                        break;
                case ATT_VIEW:
                        msg = _("\"%s\" is not a view");