Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6dab96a

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 becausethe adjacent analogous cases in RenameRelation don't have any hints, andnobody seems to have missed 'em.Shigeru Hanada
1 parent68ef051 commit6dab96a

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)

[8]ページ先頭

©2009-2025 Movatter.jp