Re: Debugging deadlocks

Поиск
Список
Период
Сортировка
От Edmund Bacon
Тема Re: Debugging deadlocks
Дата
Msg-id m3d5tesbr7.fsf@elb_lx.onesystem.ca
обсуждение исходный текст
Ответ на Debugging deadlocks  ("Guy Rouillier" <guyr@masergy.com>)
Ответы Re: Debugging deadlocks
Список pgsql-general
bruno@wolff.to (Bruno Wolff III) writes:

> Using domains is a good way to keep column constraints in just one place.
>

Speaking of domains, how do you find out what the range of a domain
is?

eg:

test=# create domain fruit as text
check( value in ('apple', 'orange', 'banana', 'pear'));
CREATE DOMAIN
test=# \dD fruit
         List of domains
 Schema | Name  | Type | Modifier
--------+-------+------+----------
 public | fruit | text |
(1 row)

test=# \dD+ fuit
         List of domains
 Schema | Name  | Type | Modifier
--------+-------+------+----------
 public | fruit | text |
(1 row)

A quick look through pg_catalog doesn't suggest anything that would
return the check conditions -   Is there any way to do this?

--
Remove -42 for email

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

Предыдущее
От: "Andrus"
Дата:
Сообщение: Re: Referential integrity using constant in foreign key
Следующее
От: Robin Ericsson
Дата:
Сообщение: Re: 8.0.2beta1 RPMs