Re: Adding foreign key constraints without integrity check?
В списке pgsql-general по дате отправления:
| От | Bruno Wolff III |
|---|---|
| Тема | Re: Adding foreign key constraints without integrity check? |
| Дата | |
| Msg-id | 20060620202501.GA21987@wolff.to обсуждение исходный текст |
| Ответ на | Re: Adding foreign key constraints without integrity check? (louis gonzales <gonzales@linuxlouis.net>) |
| Список | pgsql-general |
On Tue, Jun 20, 2006 at 00:49:21 -0400, louis gonzales <gonzales@linuxlouis.net> wrote: > Florian, > I understand where you're coming from. Indexes are always unique and > all RDBMS systems use them to 'uniquely' identify a row from the the > perspective of internal software management. Index != PrimaryKey, so > every table created, despite any Primary/Foreign key contraints put on > them, always have a 1-1 Index per row entry. At least that's the way I > understand it, can someone else affirm this statement or redirect a > misguided 'me ;)'? Note that indexes are not always unique. They can sometimes still be useful for speeding up performance even when there are duplicates. Postgres also has partial indexes which cover only some of the rows in a table, based on a where condition.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера