Re: RFC: Generating useful names for foreign keys and checks

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: RFC: Generating useful names for foreign keys and checks
Дата
Msg-id GNELIHDDFBOCMGBFGEFOEECGCCAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: RFC: Generating useful names for foreign keys and checks  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Actually I'm in favor of it.  I have a proposal outstanding to require
> constraints to have names that are unique per-table, for consistency
> with triggers (already are that way) and rules (will become that way,
> rather than having globally unique names as now).  AFAIR the only
> significant concern was making sure that the system wouldn't generate
> duplicate constraint names by default.

Yeah, that's what's giving me pain - foreign key names are generated in the
rewriter or something somewhere, so I'm not sure exactly what I have access
to for checking duplicates...

The other interesting issue is the the little suffix we append is just in
the name.  ie. someone can create an index called '_pkey' and cause
confusion.

Chris



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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: [PATCHES] ANSI Compliant Inserts
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Stumbled upon a time bug...