Re: Fwd: libpq: indefinite block on poll during network problems
От | Dmitry Samonenko |
---|---|
Тема | Re: Fwd: libpq: indefinite block on poll during network problems |
Дата | |
Msg-id | CAFKp+3fSr_Y_WzwbyDV4oWw0ZPcc4H_tNdeXRPh-YG=phrhVhw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Fwd: libpq: indefinite block on poll during network problems (Martijn van Oosterhout <kleptog@svana.org>) |
Ответы |
Re: Fwd: libpq: indefinite block on poll during network problems
|
Список | pgsql-general |
On Fri, May 30, 2014 at 8:19 PM, Martijn van Oosterhout <kleptog@svana.org> wrote:
I don't think the suggestion is to move to async command processing. I
think the suggestion is to use those methods to make a
PGgetResultWithTimeout() that does what you want.
Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> He who writes carelessly confesses thereby at the very outset that he does
> not attach much importance to his own thoughts.
-- Arthur Schopenhauer
Yeah, that will work. Looks simple to implement in the client. Question is: why don't you think it should be a part of the libpq's API? It's a must have feature in high availability environments where only several minutes of Out of Service per year are tolerable.
I am not sure if it is the right mailing list to ask, but - would a patch with the function be considered?
В списке pgsql-general по дате отправления: