Re: wrong hint message for ALTER FOREIGN TABLE

From: Shigeru Hanada <hanada(at)metrosystems(dot)co(dot)jp>
To: Thom Brown <thom(at)linux(dot)com>
Cc: "pgsql-hackers >> PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: wrong hint message for ALTER FOREIGN TABLE
Date: 2011-04-25 11:32:18
Message-ID: 4DB55BC2.8050909@metrosystems.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

(2011/04/25 19:34), Thom Brown wrote:
> Don't you mean that you created a regular table first, then tried to
> rename it as a foreign table? Your example here will be successful
> without the error.

Oops, you are right.
Right procedure to reproduce is:

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

Regards,
--
Shigeru Hanada

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2011-04-25 11:48:12 Re: Windows 64 bit warnings
Previous Message Thom Brown 2011-04-25 10:34:52 Re: wrong hint message for ALTER FOREIGN TABLE