Re: bug in SignalSomeChildren

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: bug in SignalSomeChildren
Дата
Msg-id 1292601940-sup-2063@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: bug in SignalSomeChildren  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: bug in SignalSomeChildren  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Excerpts from Tom Lane's message of vie dic 17 12:27:30 -0300 2010:
> Robert Haas <robertmhaas@gmail.com> writes:
> > I think the attached might be a little tidier.  Thoughts?
> 
> I'm not really thrilled at the idea of calling
> IsPostmasterChildWalSender for every child whether or not it will have
> any impact on the decision.  That involves touching shared memory which
> can be rather expensive (see previous discussions about shared cache
> lines and so forth).

Is it possible to save the "is walsender" flag in the Backend struct?
That would make it possible to solve the problem very easily.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: bug in SignalSomeChildren