Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6dab96a

Browse files
committed
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
1 parent 68ef051 commit 6dab96a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/commands/tablecmds.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -2247,8 +2247,7 @@ RenameRelation(Oid myrelid, const char *newrelname, ObjectType reltype)
22472247
ereport(ERROR,
22482248
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
22492249
errmsg("\"%s\" is not a foreign table",
2250-
RelationGetRelationName(targetrelation)),
2251-
errhint("Use ALTER FOREIGN TABLE instead.")));
2250+
RelationGetRelationName(targetrelation))));
22522251

22532252
/*
22542253
* Don't allow ALTER TABLE on composite types. We want people to use ALTER

0 commit comments

Comments
 (0)