Re: pqsignal - to be or (in this case) not to be

Поиск
Список
Период
Сортировка
Искать
От
Merlin Moncure
Тема
Re: pqsignal - to be or (in this case) not to be
Дата
Msg-id
303E00EBDD07B943924382E153890E5434AA7A@cuthbert.rcsinc.local
Список
Дерево обсуждения
Re: pqsignal - to be or (in this case) not to be "Magnus Hagander" <mha@sollentuna.net>
Re: pqsignal - to be or (in this case) not to be Tom Lane <tgl@sss.pgh.pa.us>
Magnus Hagander wrote:
> I guess I've spent too much time listening to people, including
myself,
> assuming how things work without actually testing it.
> 
> It turns out that both select() and recv() (and thus, probably send()
as
> well) put the thread in alertable state. This means that while we are
in
> a blocking select() or recv(), *our signals will be delivered using an
> APC*.

Ha!  That makes things easy then, doesn't it! 

As for the polling, adding a poll to one or two strategic plaes (like
the I/O subsystem) should cover 99% of the reasonable cases...

Merlin


В списке pgsql-hackers-win32 по дате отправления
От: Magnus Hagander
Дата:
От: Tom Lane
Дата:
FAQ