Re: Streaming Replication on win32

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Streaming Replication on win32
Дата
Msg-id 27351.1263788501@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Streaming Replication on win32  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Streaming Replication on win32  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> Which shows one potentially big problem - since we're calling select()
> from inside libpq, it's not calling our "signal emulation layer
> compatible select()". This means that at this point, walreceiver is
> not interruptible.

Ugh.

> Which also shows itself if I shut down the system -
> the walreceiver stays around, and won't terminate properly. Do we need
> to invent a way for libpq to call back into backend code to do this
> select? We certainly can't have libipq use our version directly -
> since that would break all non-postmaster/postgres processes.

I think that on some platforms, it's possible for the call to select()
from a shlib such as libpq to be captured by a select() provided by the
executable it's loaded into.  Dunno about the linking rules on Windows,
but is there any chance of a workaround that way?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached
Следующее
От: Robert Haas
Дата:
Сообщение: Re: parallel regression test output