Re: [HACKERS] More postmaster troubles

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] More postmaster troubles
Дата
Msg-id 4227.918937356@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: [HACKERS] More postmaster troubles  ("Daryl W. Dunbar" <daryl@www.com>)
Ответы RE: [HACKERS] More postmaster troubles  ("Daryl W. Dunbar" <daryl@www.com>)
Список pgsql-hackers
"Daryl W. Dunbar" <daryl@www.com> writes:
> Thank you Tatsousan.  This patch will solve the dying process
> problem when I reach MaxBackendId (which I increased from 64 to
> 128).  However, I do not know what is causing the spiraling death of
> the processes in the first place. :(

Hmm.  I have noticed at least one place in the code where there is an
undocumented hard-wired dependency on MaxBackendId, to wit MAX_PROC_SEMS
in include/storage/proc.h which is set at 128.  Presumably it should be
equal to MaxBackendId (and I intend to fix that soon).  Evidently that
particular bug is not hurting you (yet) but perhaps there are similar
errors elsewhere that kick in sooner.  Do you see the spiraling-death
problem if you run with MaxBackendId at its customary value of 64?

The log extract you posted before mentions "fputc() failed: errno=32"
which suggests an unexpected client disconnect during a transaction.
I suspect the backend that gets that disconnect is failing to clean up
properly before exiting, and is leaving one or more locks locked.
We don't have enough info yet to track down the cause, but I suggest
we could narrow it down some by seeing whether the problem goes away
with a lower MaxBackendId setting.

(You might also want to work on making your clients more robust,
but I'd like to see if we can solve the backend bug first ...)
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Failures in 'rules' regression test
Следующее
От: "Daryl W. Dunbar"
Дата:
Сообщение: RE: [HACKERS] More postmaster troubles