Re: [HACKERS] Re: [PATCHES] A bag of psql goodies

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] Re: [PATCHES] A bag of psql goodies
Дата
Msg-id Pine.LNX.4.20.9911270230250.471-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Re: [PATCHES] A bag of psql goodiesu  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [HACKERS] Re: [PATCHES] A bag of psql goodies  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On 1999-11-26, Bruce Momjian mentioned:

> Peter, is there a way from pgsql to show if an index is unique?  It
> would be nice.

Works here:
(I think this was part of the last patch.)

play=> \d baaz       Table "baaz"Attribute | Type |  Extra   
-----------+------+----------a         | int4 | not null
Index: baaz_pkey
Rule: baaz_rule

play=> \d baaz_pkey
Index "baaz_pkey"Attribute | Type 
-----------+------a         | int4
unique btree (primary key)

play=> \d bar            Table "bar"Attribute | Type | Extra 
-----------+------+-------a         | int4 | b         | text | 
Indices: barindex,        barunique
Constraints: a > 0            b IN ( 'yes' , 'no' )

play=> \d barindex
Index "barindex"Attribute | Type 
-----------+------a         | int4
btree

play=> \d barunique
Index "barunique"Attribute | Type 
-----------+------a         | int4b         | text
unique btree

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Concurrent VACUUM: first results
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] Development installation fails