Re: How can I know whether an index already exists

From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: "kaifeng(dot)zhu" <cafeeee(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How can I know whether an index already exists
Date: 2010-06-23 06:21:54
Message-ID: AANLkTin9y0cJ6nLfLQ_XuAjvKt9ULb5mT6boq35nApFT@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 23 June 2010 10:16, kaifeng.zhu <cafeeee(at)gmail(dot)com> wrote:
> Hi there,
> How can I know whether an index already exists?

SELECT *
FROM pg_indexes
WHERE indexname ~ 'your_indexname';

--
Sergey Konoplev

Blog: http://gray-hemp.blogspot.com /
Linkedin: http://ru.linkedin.com/in/grayhemp /
JID/GTalk: gray(dot)ru(at)gmail(dot)com / Skype: gray-hemp / ICQ: 29353802

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2010-06-23 06:32:19 Re: How can I know whether an index already exists
Previous Message kaifeng.zhu 2010-06-23 06:16:22 How can I know whether an index already exists