From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Dirk Lutzebaeck <lutzeb@aeccom.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to find out if an index is unique?
Date: Wed, 17 Jul 2002 13:15:07 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0207171312290.9911-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <15669.16833.74916.773006@cayambe.core.aeccom.com>
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
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: achill@matrix.gatewaynet.com, lutzeb@aeccom.com
Subject: Re: How to find out if an index is unique?
In-Reply-To: <Pine.LNX.4.44.0207171312290.9911-100000@matrix.gatewaynet.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