Re: Debugging deadlocks - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Debugging deadlocks
Date
Msg-id 20050401135700.GB26112@wolff.to
Whole thread Raw
In response to Re: Debugging deadlocks  (frank@joerdens.de)
List pgsql-general
On Fri, Apr 01, 2005 at 10:37:11 +0200,
  frank@joerdens.de wrote:
>
> And idea that just came up around here that sounds like a pretty neat
> workaround, which we're gonna try, is to drop the foreign key
> constraints, and just use a check constraint for the allowed values. If
> the cardinality of the reference table is small, this is much faster
> than using foreign keys and solves your problem.  With the drawback that
> if you update the reference table (if you keep it), you mustn't forget
> to also update the check constraints in more than one place.

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

pgsql-general by date:

Previous
From: Jaqui Greenlees
Date:
Subject: Re: [Fwd: [webmaster] in Search of free hosting with PostgreSQL]
Next
From: Bruno Wolff III
Date:
Subject: Re: FW: Help with order by into a RECORD