Re: Creating indexes

Поиск
Список
Период
Сортировка
От Asche
Тема Re: Creating indexes
Дата
Msg-id 8A21EAB9-9D04-480F-A952-4294178F4374@mac.com
обсуждение исходный текст
Ответ на Creating indexes  (Rauan Maemirov <rauan1987@gmail.com>)
Список pgsql-performance
Hi,

Hi, all. I want to ask what type of index is better to create for
bigint types. I have table with bigint (bigserial) primary key. What


PostgreSQL automatically creates an index for each unique constraint and primary key constraint to enforce uniqueness. Thus, it is not necessary to create an index explicitly for primary key columns.

type is better to use for it? I tried btree and hash, but didn't

You already have an index on your bigint primary key. I think it is of type btree.

Jan

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

Предыдущее
От: Alan Hodgson
Дата:
Сообщение: Re: Creating indexes
Следующее
От: PFC
Дата:
Сообщение: Re: Creating a foreign key