pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ligia Pimentel <pimentel_ligia@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to find out if an index is unique?
Date: Wed, 17 Jul 2002 17:27:33 -0500
Message-ID: <ah4upu$km2$1@news.hub.org> (raw)
References: <15669.16833.74916.773006@cayambe.core.aeccom.com>

You could also use describe (in psql environment )

psql mydatabase
mydatabase=# \d indexname

Index "indexname"
 Attribute  |     Type
------------+---------------
 fieldname    | datatype
unique btree

The word "unique" will show up only if the index has the unique
qualification, otherwise it will read only "btree".

Hope this helps.

Ligia


"Dirk Lutzebaeck" <lutzeb@aeccom.com> wrote in message
news:15669.16833.74916.773006@cayambe.core.aeccom.com...
>
> 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





view thread (5+ messages)

Message-ID: <ah4upu$km2$1@news.hub.org>
Permalink:  ../ah4upu$km2$1@news.hub.org/
Also on:    postgresql.org/message-id/ah4upu$km2$1@news.hub.org

 · 

reply

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: pimentel_ligia@hotmail.com
  Subject: Re: How to find out if an index is unique?
  In-Reply-To: <ah4upu$km2$1@news.hub.org>

* 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