Re: Debugging deadlocks - Mailing list pgsql-general

From Edmund Bacon
Subject Re: Debugging deadlocks
Date
Msg-id m3d5tesbr7.fsf@elb_lx.onesystem.ca
Whole thread Raw
In response to Debugging deadlocks  ("Guy Rouillier" <guyr@masergy.com>)
Responses Re: Debugging deadlocks  (Michael Fuhr <mike@fuhr.org>)
List 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 by date:

Previous
From: "Andrus"
Date:
Subject: Re: Referential integrity using constant in foreign key
Next
From: Robin Ericsson
Date:
Subject: Re: 8.0.2beta1 RPMs