Re: help with locked table(s)/transactions(s)

Поиск
Список
Период
Сортировка
От Mott Leroy
Тема Re: help with locked table(s)/transactions(s)
Дата
Msg-id 43E0CD65.4080709@acadaca.com
обсуждение исходный текст
Ответ на Re: help with locked table(s)/transactions(s)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> No, the locks would be held till end of transaction.  It is a little odd
> that you have so many conflicts, though, unless the referenced table is
> pretty small and/or this loop manages to touch a large fraction of the
> possible keys.

Ah, well, if the locks are held to the end of the transaction that would
explain it I think. I mean, the loop touches *every* row (UPDATEs) in
one of the tables. It sounds like I need to break up this function into
a smaller function (by placing the loop outside the transaction).

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Help in compiling 8.1.2 from source
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Passwords when changing users -> roles