Re: Primary Key and Indices

Поиск
Список
Период
Сортировка
От Ragnar Hafstað
Тема Re: Primary Key and Indices
Дата
Msg-id 1114368420.30043.26.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Primary Key and Indices  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: Primary Key and Indices  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general
On Sun, 2005-04-24 at 09:49 -0700, Rich Shepard wrote:
>    I'm converting mysql tables to postgres. One of the tables has this:
>
>    PRIMARY KEY (org_id, contact_id),
>    KEY contact (contact_id, org_id)
>
>    Is there really a difference in the two indices if the sequence of fields
> is reversed?

yes.
for example, only the first one can be used for ORDER BY org_id

gnari



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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: timezone() with timeofday() converts the wrong direction?
Следующее
От: Antoine Solomon
Дата:
Сообщение: Re: New PostgreSQL book coming