Re: [HACKERS] Problem after removal of exec(), help

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Problem after removal of exec(), help
Дата
Msg-id 199806231529.LAA13884@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Problem after removal of exec(), help  (Goran Thyni <goran@bildbasen.se>)
Список pgsql-hackers
> Bruce,
> I have not look into it the specifics yet,
> but I suggest looking into what is done when
> the child process exits.
> This (the pg_exit() et al.) caused some bugs
> when we introduced unix domain sockets and
> it is not the first place one looks. :-(

Are you suggesting that because one of the backends did not exit
cleanly, that there is some problem?

Because the postmaster is resetting all shared memory at that point, I
am not sure that is the area.  I have been thinking about it, and my
guess is that one of the initialization functions (lock?) just appends
to the lock queue on restart, instead of clearing it first, and a
backend that does exec() starts out with clean global variables, which
they now do not.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

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

Предыдущее
От: Goran Thyni
Дата:
Сообщение: Re: [HACKERS] Problem after removal of exec(), help
Следующее
От: The Hermit Hacker
Дата:
Сообщение: I thought we had fixed this for v6.3.2 ...?