Re: bug in SignalSomeChildren
От | Tom Lane |
---|---|
Тема | Re: bug in SignalSomeChildren |
Дата | |
Msg-id | 696.1292602715@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: bug in SignalSomeChildren (Alvaro Herrera <alvherre@commandprompt.com>) |
Ответы |
Re: bug in SignalSomeChildren
Re: bug in SignalSomeChildren |
Список | pgsql-hackers |
Alvaro Herrera <alvherre@commandprompt.com> writes: > Is it possible to save the "is walsender" flag in the Backend struct? > That would make it possible to solve the problem very easily. Yeah, I was wondering about that too, but the problem is that the postmaster doesn't know that at the time it forks the child. The flag in shared memory will get set later, but it's hard to tell how much later. Of course, that observation also means that anyplace the postmaster tries to distinguish walsenders from other children is fundamentally broken anyhow: a walsender that hasn't set the flag yet will get treated like a regular backend. I think what we ought to be looking to do is get rid of the distinction, so that the postmaster treats walsenders the same as other children. regards, tom lane
В списке pgsql-hackers по дате отправления: