implicit index created, do I need to also create an explicit index?
В списке pgsql-general по дате отправления:
| От | Mark Harrison |
|---|---|
| Тема | implicit index created, do I need to also create an explicit index? |
| Дата | |
| Msg-id | 437E49F3.1060702@pixar.com обсуждение исходный текст |
| Ответы |
Re: implicit index created, do I need to also create an explicit index?
|
| Список | pgsql-general |
So I create a table with unique fields, and it creates an implicit index.
1. This is a general purpose index, correct? I.e. not used solely for
ensuring uniqueness, so I don't need to create another index on
the same field explicitly, right?
2. What are the implications of creating another index, such as
create index foo on tv_workspace(name)? Is is just a duplicate
of the implicitly created index?
create table tv_workspace (
name varchar(32) unique not null,
p4client varchar(64) unique not null,
owner bigint not null
);
NOTICE: CREATE TABLE / UNIQUE will create implicit index "tv_workspace_name_key" for table "tv_workspace"
NOTICE: CREATE TABLE / UNIQUE will create implicit index "tv_workspace_p4client_key" for table "tv_workspace"
TIA!
Mark
--
Mark Harrison
Pixar Animation Studios
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера