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

Lines changed: 1 addition & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy