Re: PK Index - Removal

From: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
To: Patrick B <patrickbakerbr(at)gmail(dot)com>,pgsql-general(at)postgresql(dot)org
Subject: Re: PK Index - Removal
Date: 2016-08-11 04:08:32
Message-ID: E50C0178-A3D2-42C0-A0C6-042E5F6DFEC8@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yes, you can drop the unused index.

On 11 August 2016 05:30:15 CEST, Patrick B <patrickbakerbr(at)gmail(dot)com> wrote:
>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

--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Venkata Balaji N 2016-08-11 04:24:07 Re: PK Index - Removal
Previous Message Adrian Klaver 2016-08-11 04:06:58 Re: PK Index - Removal