Re: rename constraint behavior for duplicate names?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: rename constraint behavior for duplicate names?
Дата
Msg-id 7002.1125611714@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: rename constraint behavior for duplicate names?  (Allan Wang <allanvv@gmail.com>)
Ответы Re: rename constraint behavior for duplicate names?  (Allan Wang <allanvv@gmail.com>)
Список pgsql-hackers
Allan Wang <allanvv@gmail.com> writes:
> Alright, I see why the checks are still needed. The unique index should
> be on relname, conname right? Also looking into DROP CONSTRAINT's code,
> it gives a notice about "multiple constraint names dropped" when
> RemoveRelConstraints(rel, conname) returns > 1. This check isn't needed
> anymore right? Also RemoveRelConstraints can be simplified to assume
> only one row will need removing, and be turned into a void function?

Not unless you want to break the "quiet" option for ATExecDropConstraint.
        regards, tom lane


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

Предыдущее
От: Allan Wang
Дата:
Сообщение: Re: rename constraint behavior for duplicate names?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: rename constraint behavior for duplicate names?