PK Index - Removal

Поиск
Список
Период
Сортировка
От Patrick B
Тема PK Index - Removal
Дата
Msg-id CAJNY3isMkTE5DMtg=+1hgv4ypPd-aiGZaDd=rgAZgoxPjBVsQQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: PK Index - Removal  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: PK Index - Removal  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Re: PK Index - Removal  (Venkata Balaji N <nag1010@gmail.com>)
Список pgsql-general
Hi guys,

I got the following index:

CREATE INDEX "ix_mo_pk" ON "mo" USING "btree" ((("id")::"text"))

The "ID" is my primary key:
"mo_pkey" PRIMARY KEY, "btree" ("id") 

 The ix_mo_pk index is not being used... But as it has the "ID" on it, I wanted to ask before dropping it.

Can you guys explain me if the ix_mo_pk is safe to delete and why?

The mo_pkey index is being used.

I'm using Postgres 9.2

Thanks
Patrick

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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Jsonb extraction very slow
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: PK Index - Removal