Re: How to find out if an index is unique? - Mailing list pgsql-sql

From Achilleus Mantzios
Subject Re: How to find out if an index is unique?
Date
Msg-id Pine.LNX.4.44.0207171312290.9911-100000@matrix.gatewaynet.com
Whole thread Raw
In response to How to find out if an index is unique?  (Dirk Lutzebaeck <lutzeb@aeccom.com>)
List pgsql-sql
On Wed, 17 Jul 2002, Dirk Lutzebaeck wrote:

Yes.

Select the oid from pg_class where relname is your index name.
Then search in pg_index for column "indisunique" using the previous oid
as "indexrelid".

> 
> 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
> 

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel:    +30-10-8981112
fax:    +30-10-8981877
email:  achill@matrix.gatewaynet.com       mantzios@softlab.ece.ntua.gr



pgsql-sql by date:

Previous
From: "Luis Alberto Amigo Navarro"
Date:
Subject: why is postgres estimating so badly?
Next
From: "Alain Lavigne"
Date:
Subject: Re: Need help on a troublesome query plan