From: Rajesh Kumar Mallah. <mallah@trade-india.com>
To: Dirk Lutzebaeck <lutzeb@aeccom.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to find out if an index is unique?
Date: Wed, 17 Jul 2002 20:40:28 +0530
Message-ID: <200207172040.28157.mallah@trade-india.com> (raw)
In-Reply-To: <15669.16833.74916.773006@cayambe.core.aeccom.com>
References: <15669.16833.74916.773006@cayambe.core.aeccom.com>
perhaps This is more elegant has Tom has indicated :
select pg_get_indexdef(oid) from pg_class where relname = 'email_bank_email';
pg_get_indexdef
-------------------------------------------------------------------------------
CREATE UNIQUE INDEX email_bank_email ON email_bank USING btree (lower(email))
(1 row)
substitue 'email_bank_email' with name of your index.....
regds
mallah.
On Wednesday 17 July 2002 15:36, Dirk Lutzebaeck wrote:
> Hello,
>
> is there a way to ask the system tables if a given index was created
> with the unique qualification? I don't want to insert data to try.
>
> Greetings,
>
> Dirk
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mallah@trade-india.com, lutzeb@aeccom.com
Subject: Re: How to find out if an index is unique?
In-Reply-To: <200207172040.28157.mallah@trade-india.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox