Hi All, Does building a primary key constraint automatically generate an index? Using pgadmin I cannot see it if it does. Should I explicitly build indexes on primary keys? Wouldn't building a unique index on the same columns as the primary key be redundent? Your guidance is appreciated. Kind Regards, Keith ______________________________________________ 99main Internet Services http://www.99main.com
On Fri, Jan 21, 2005 at 15:54:36 -0500, Keith Worthington <keithw@narrowpathinc.com> wrote: > Hi All, > > Does building a primary key constraint automatically generate an index? Using > pgadmin I cannot see it if it does. Should I explicitly build indexes on > primary keys? Wouldn't building a unique index on the same columns as the > primary key be redundent? Your guidance is appreciated. Yes, when you declare a primary (or unique) key a unique index over the columns of the key is created.
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера