| От | Rod Taylor |
|---|---|
| Тема | Re: multi column foreign key for implicitly unique columns |
| Дата | |
| Msg-id | 1092847573.32799.148.camel@jester обсуждение исходный текст |
| Ответ на | Re: multi column foreign key for implicitly unique columns (Jan Wieck <JanWieck@Yahoo.com>) |
| Список | pgsql-sql |
On Wed, 2004-08-18 at 12:27, Jan Wieck wrote: > On 8/18/2004 12:18 PM, Tom Lane wrote: > > > Richard Huxton <dev@archonet.com> writes: > >> * Allow multiple unique constraints to share an index where one is a > >> superset of the others' columns. > > > >> That way you can mark it unique without having the overhead of multiple > >> indexes. > > > > That just moves the uncertain-dependency problem over one spot, ie, it's > > the fabricated unique constraint that you can't pin down the > > requirements for. > > If we allow for a unique index, that Silly question, but why does UNIQUE require an index at all? Yes, current implementation does, and agreed that checks will be mighty slow without an index (so are CASCADES to a non-indexed column)...
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера