wrong hint message for ALTER FOREIGN TABLE

Поиск
Список
Период
Сортировка
От Shigeru Hanada
Тема wrong hint message for ALTER FOREIGN TABLE
Дата
Msg-id 4DB5398D.40306@metrosystems.co.jp
обсуждение исходный текст
Ответы Re: wrong hint message for ALTER FOREIGN TABLE  (Thom Brown <thom@linux.com>)
Re: wrong hint message for ALTER FOREIGN TABLE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Unlogged tables, persistent kind
Следующее
От: Thom Brown
Дата:
Сообщение: Re: wrong hint message for ALTER FOREIGN TABLE