Re: Uniqueness of rule, constraint, and trigger names

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Uniqueness of rule, constraint, and trigger names
Дата
Msg-id GNELIHDDFBOCMGBFGEFOOEJOCBAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Uniqueness of rule, constraint, and trigger names  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
> 2. Constraints are not required to have any unique name at all.
> Dropping constraints is done with "ALTER TABLE tablename DROP CONSTRAINT
> constraintname", which will drop all constraints on that table that
> match the given name.

Personally, I'd like to see CHECK contraints given decent names (eg.
mytable_fullname_chk) instead of '$1', '$2', etc.  This makes it much easier
to use DROP CONSTRAINT...

Also, when it comes time to let people drop FOREIGN KEY constraints, it
might be a problem that they're all generated as '<unnamed>' at the
moment...

Chris



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Changing sequence cache
Следующее
От: "Andrew G. Hammond"
Дата:
Сообщение: Re: Changing sequence cache