wrong hint message for ALTER FOREIGN TABLE

From: Shigeru Hanada <hanada(at)metrosystems(dot)co(dot)jp>
To: "pgsql-hackers >> PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: wrong hint message for ALTER FOREIGN TABLE
Date: 2011-04-25 09:06:21
Message-ID: 4DB5398D.40306@metrosystems.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I noticed that ALTER FOREIGN TABLE RENAME TO emits a wrong hint message
if the object was not a foreign table. ISTM that the hint message is
not necessary there. Attached patch removes the hint message.

Steps to reproduce the situation:

postgres=# CREATE FOREIGN TABLE foo () SERVER file_server;
postgres=# ALTER FOREIGN TABLE foo RENAME TO bar;
ERROR: "foo" is not a foreign table
HINT: Use ALTER FOREIGN TABLE instead.

Regards,
--
Shigeru Hanada

Attachment Content-Type Size
remove_rename_hint.patch text/plain 831 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thom Brown 2011-04-25 10:34:52 Re: wrong hint message for ALTER FOREIGN TABLE
Previous Message Simon Riggs 2011-04-25 09:04:22 Re: Unlogged tables, persistent kind