Re: How to find out if an index is unique?

Поиск
Список
Период
Сортировка
От Achilleus Mantzios
Тема Re: How to find out if an index is unique?
Дата
Msg-id Pine.LNX.4.44.0207171312290.9911-100000@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на How to find out if an index is unique?  (Dirk Lutzebaeck <lutzeb@aeccom.com>)
Список 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 по дате отправления:

Предыдущее
От: "Luis Alberto Amigo Navarro"
Дата:
Сообщение: why is postgres estimating so badly?
Следующее
От: "Alain Lavigne"
Дата:
Сообщение: Re: Need help on a troublesome query plan