Remove incorrect HINT for use of ALTER FOREIGN TABLE on the wrong relkind.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Apr 2011 00:13:53 +0000 (20:13 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Apr 2011 00:13:53 +0000 (20:13 -0400)
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

index 60eecb14976db56508b9d3c850d1879b47487d8f..437a6915b3312289b44ed38415b33067cd423d95 100644 (file)
@@ -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