Re: BUG #15710: ADD COLUMN IF NOT EXISTS adds constraint anyways

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15710: ADD COLUMN IF NOT EXISTS adds constraint anyways
Дата
Msg-id 10528.1553177890@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #15710: ADD COLUMN IF NOT EXISTS adds constraint anyways  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> If I want to add a column to a table which and the column may or may not
> already exist, the specified column constraint like UNIQUE is added every
> time the command is issued, regardless if the column gets added or not.

Yeah, this is the same thing previously reported at

https://www.postgresql.org/message-id/flat/152509815280.19803.16118194452213577808%40wrigleys.postgresql.org

We haven't got further than sketching a design for a fix :-(

            regards, tom lane


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: BUG #15709: if drop exists syntax
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15711: pgadmin install fails with missing python-blinker and python-flast packages