Re: Buggy SELEC ... FROM UPDATE ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Buggy SELEC ... FROM UPDATE ?
Дата
Msg-id 4748.987181719@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Buggy SELEC ... FROM UPDATE ?  (Patrice Espié <patrice.espie@univ-lyon2.fr>)
Список pgsql-novice
=?iso-8859-1?Q?Patrice_Espi=E9?= <patrice.espie@univ-lyon2.fr> writes:
> When a lot of threads (well, I tried 20, 5 and 2) used this algo, more than
> one thread get the syslock %d at the same time.

"Threads"?  Are you sure each thread has an independent database
connection, and you're not reusing connections to issue commands
from different threads?  Your pseudocode looks like it should work
if issued to separate backends ...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Calling 'c' function from PostGreSQL
Следующее
От: Dave Disser
Дата:
Сообщение: Increasing max connections