Commit 6dab96ab authored by Tom Lane's avatar Tom Lane

Remove incorrect HINT for use of ALTER FOREIGN TABLE on the wrong relkind.

Per discussion, removing the hint seems better than correcting it because
the adjacent analogous cases in RenameRelation don't have any hints, and
nobody seems to have missed 'em.

Shigeru Hanada
parent 68ef051f
...@@ -2247,8 +2247,7 @@ RenameRelation(Oid myrelid, const char *newrelname, ObjectType reltype) ...@@ -2247,8 +2247,7 @@ RenameRelation(Oid myrelid, const char *newrelname, ObjectType reltype)
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE), (errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("\"%s\" is not a foreign table", errmsg("\"%s\" is not a foreign table",
RelationGetRelationName(targetrelation)), RelationGetRelationName(targetrelation))));
errhint("Use ALTER FOREIGN TABLE instead.")));
/* /*
* Don't allow ALTER TABLE on composite types. We want people to use ALTER * Don't allow ALTER TABLE on composite types. We want people to use ALTER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment