Re: libpq: Which functions may hang due to network issues?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: libpq: Which functions may hang due to network issues? |
| Дата | |
| Msg-id | 2813628.1638720114@sss.pgh.pa.us обсуждение |
| Ответ на | Re: libpq: Which functions may hang due to network issues? (Daniel Frey <d.frey@gmx.de>) |
| Ответы |
Re: libpq: Which functions may hang due to network issues?
|
| Список | pgsql-general |
Daniel Frey <d.frey@gmx.de> writes:
> With all that said, I think that PostgreSQL/libpq should have a clear, documented way to get rid of a connection that
isguaranteed to not hang. It has something similar for almost all other methods like opening connections, sending
request,retrieving results. Why stop there?
AFAICS, PQfinish() already acts that way, at least up to the same level of
guarantee as you have for "all other methods". That is, if you previously
set the connection into nonblock mode, it won't block.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера