Re: Debugging deadlocks

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Debugging deadlocks
Дата
Msg-id 20050401135700.GB26112@wolff.to
обсуждение исходный текст
Ответ на Re: Debugging deadlocks  (frank@joerdens.de)
Список 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 по дате отправления:

Предыдущее
От: Jaqui Greenlees
Дата:
Сообщение: Re: [Fwd: [webmaster] in Search of free hosting with PostgreSQL]
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: FW: Help with order by into a RECORD