| От | Tom Lane |
|---|---|
| Тема | Re: [INTERFACES] PQfinish kills my app |
| Дата | |
| Msg-id | 27686.942903947@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | PQfinish kills my app (Rob Brown-Bayliss <rob@ZOOstation.cc>) |
| Список | pgsql-interfaces |
Rob Brown-Bayliss <rob@ZOOstation.cc> writes:
> So I don't understand why it dies on PQfinish one way but not the
> other. But, if I do not call exit_nicely (ie: just end without
> PQfinish) ir dies on option -v but works for option -a
Kinda sounds like you might be calling PQfinish more than once on
the same connection object. That's a no-no.
> PS: By die I mean seagfault, I traced wit with gdb to the PQfinish
> function. As I am new to the GNU tools (and fairly new to C) I am not
> sure whats going on. I could post the code, but was not sure about the
> list rules, it's 8 k long.
People have posted much larger messages than 8k with less reason.
If the multiple-calls idea doesn't pan out, let's see it...
regards, tom lane
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера