| От | Michele Bendazzoli |
|---|---|
| Тема | Re: Multicolum index and primary key |
| Дата | |
| Msg-id | 1069090436.8338.25.camel@mickymouse.sintel обсуждение исходный текст |
| Ответ на | Re: Multicolum index and primary key (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-sql |
On Mon, 2003-11-17 at 17:14, Peter Eisentraut wrote: > Michele Bendazzoli writes: > > > ALTER TABLE public.table1 > > ADD CONSTRAINT table1_pkey PRIMARY KEY(a, b, c); > > > > are the indexes over (a) and (a, b) redundant (and so useless)? > > Exactly. > > p.s. I know, I'll have to begin to use the explain command ... > > I promise I'll do it ;-) > > You could also have read the documentation about multicolumn indexes, > because it contains exactly this example. Thank you. I have read the chapter but I wonder if the implicit index created by the primary key behaves as a normal indexes at all. ciao, Michele
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера