| От | Tom Lane |
|---|---|
| Тема | Re: pg_conn not declared in libpq-fe.h? |
| Дата | |
| Msg-id | 13216.1058973249@sss.pgh.pa.us обсуждение |
| Ответ на | Re: pg_conn not declared in libpq-fe.h? (Hauke Joachim Zuehl <hzuehl@athene.dnsalias.org>) |
| Список | pgsql-hackers |
Hauke Joachim Zuehl <hzuehl@athene.dnsalias.org> writes:
> Well, that's clear but there is another problem:
> hauke@fafnir [pgsql] >>grep -H "typedef.*PGconn" *.h
> libpq-fe.h:typedef struct pg_conn PGconn;
> hauke@fafnir [pgsql] >>grep -H "pg_conn" *.h
> libpq-fe.h:typedef struct pg_conn PGconn;
> hauke@fafnir [pgsql] >>
> So I miss the structure pg_conn :(
> Maybe I have to include more than just libpq-fe.h?
You're right, the contents of the structure are not exported by the
library. Your code should only use pointers to the struct, so it ought
not care what is in the struct.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера