Re: WHY transaction waits for another transaction?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: WHY transaction waits for another transaction?
Дата
Msg-id 20050619162209.GA19463@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: WHY transaction waits for another transaction?  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-sql
On Sun, Jun 19, 2005 at 09:58:11AM -0600, Michael Fuhr wrote:
> 
> If possible, it would be best to commit transactions that insert
> or update foreign keys as soon as possible.

I probably shouldn't have said "best" here, implying that this
solution is better than all other possibilities.  As Tom Lane pointed
out, you could also make the constraints deferrable.  If you don't
need to know about foreign key violations immediately, then deferring
the checks might be a better way to go.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: WHY transaction waits for another transaction?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Putting an INDEX on a boolean field?