Re: ALTER TABLE documentation or parser bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ALTER TABLE documentation or parser bug
Дата
Msg-id 19734.1417628674@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ALTER TABLE documentation or parser bug  (Flavio Henrique Araque Gurgel <fhagur@gmail.com>)
Ответы Re: ALTER TABLE documentation or parser bug
Список pgsql-bugs
Flavio Henrique Araque Gurgel <fhagur@gmail.com> writes:
> Hello all
> In the documentation in:
> http://www.postgresql.org/docs/current/static/sql-altertable.html

> It says that, to rename a constraint, we can use:

> ALTER TABLE [ IF EXISTS ] [ ONLY ] name [ * ]
>      RENAME CONSTRAINT constraint_name TO new_constraint_name

> Who is wrong, parser or documentation (or myself)?

Documentation, evidently: a look at the grammar shows that IF EXISTS has
been implemented only for a rather haphazard subset of ALTER ... RENAME
cases, and this isn't one of them.

            regards, tom lane

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

Предыдущее
От: Flavio Henrique Araque Gurgel
Дата:
Сообщение: ALTER TABLE documentation or parser bug
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #11949: pg_basebackup creates defective tar file