| От | Boulat Khakimov |
|---|---|
| Тема | PQfinish(const PGconn *conn) question |
| Дата | |
| Msg-id | 3AA914E0.8E8A184E@inet-interactif.com обсуждение |
| Ответы |
Re: PQfinish(const PGconn *conn) question
|
| Список | pgsql-hackers |
Hi, I'm wondering how safe it is to pass an uninitialized conn to PQfinish.... I have set a SIGALRM handler that terminates my daemon and closes connection to Postgres if time-out happens. However, Im setting the alarm few times before the connection to Postgres was established... which means that conn pointer in not initialized yet and it will be passed to PQfinish in my SIGALRM handler. Im not sure how Postgres will handle that.... so far that doesnt seem to be causing any errors but Im not sure what's actually happening behind the scenes... Any input would be appreciated. Regards, Boulat Khakimov -- Nothing Like the Sun
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера