PK Index - Removal

From: Patrick B <patrickbakerbr(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: PK Index - Removal
Date: 2016-08-11 03:30:15
Message-ID: CAJNY3isMkTE5DMtg=+1hgv4ypPd-aiGZaDd=rgAZgoxPjBVsQQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-08-11 04:06:58 Re: PK Index - Removal
Previous Message Jim Nasby 2016-08-10 23:34:10 Re: Jsonb extraction very slow