From 6dab96abaa8bd6775658d26517e288f4d5f6448f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 25 Apr 2011 20:13:53 -0400 Subject: [PATCH] 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 --- src/backend/commands/tablecmds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 60eecb1497..437a6915b3 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -2247,8 +2247,7 @@ RenameRelation(Oid myrelid, const char *newrelname, ObjectType reltype) ereport(ERROR, (errcode(ERRCODE_WRONG_OBJECT_TYPE), errmsg("\"%s\" is not a foreign table", - RelationGetRelationName(targetrelation)), - errhint("Use ALTER FOREIGN TABLE instead."))); + RelationGetRelationName(targetrelation)))); /* * Don't allow ALTER TABLE on composite types. We want people to use ALTER -- 2.11.0