aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-04-25 20:13:53 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-04-25 20:13:53 -0400
commit6dab96abaa8bd6775658d26517e288f4d5f6448f (patch)
tree2127444069c4c9973c2bb5d91dfd778bfe9af1e8 /src/backend/commands/tablecmds.c
parent68ef051f5cf16f82a5368067a40ffba3c340b0d3 (diff)
downloadpostgresql-6dab96abaa8bd6775658d26517e288f4d5f6448f.tar.gz
postgresql-6dab96abaa8bd6775658d26517e288f4d5f6448f.zip
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
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r--src/backend/commands/tablecmds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index 60eecb14976..437a6915b33 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