Re: HaveNFreeProcs() iterates through entire freeProcs list

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: HaveNFreeProcs() iterates through entire freeProcs list
Дата
Msg-id 19611.1480711977@sss.pgh.pa.us
обсуждение исходный текст
Ответ на HaveNFreeProcs() iterates through entire freeProcs list  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: HaveNFreeProcs() iterates through entire freeProcs list
Список pgsql-hackers
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> Current HaveNFreeProcs() iterates through the entire freeProcs list 
> (while holding ProcStructLock) just to determine if there's a small 
> number (superuser_reserved_connections) of free slots available.

I think you misread it.  Note the "n > 0" part of the while condition.
        regards, tom lane



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