Re: Multicolum index and primary key

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Multicolum index and primary key
Дата
Msg-id Pine.LNX.4.44.0311171713460.12502-100000@peter.localdomain
обсуждение исходный текст
Ответ на Multicolum index and primary key  (Michele Bendazzoli <mickymouse@mickymouse.it>)
Ответы Re: Multicolum index and primary key
Список pgsql-sql
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.

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: Michele Bendazzoli
Дата:
Сообщение: Multicolum index and primary key
Следующее
От: Tomasz Myrta
Дата:
Сообщение: Re: Multicolum index and primary key