Re: pg_conn not declared in libpq-fe.h?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hauke Joachim Zuehl <hzuehl(at)athene(dot)dnsalias(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_conn not declared in libpq-fe.h?
Date: 2003-07-23 15:14:09
Message-ID: 13216.1058973249@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hauke Joachim Zuehl <hzuehl(at)athene(dot)dnsalias(dot)org> writes:
> Well, that's clear but there is another problem:
> hauke(at)fafnir [pgsql] >>grep -H "typedef.*PGconn" *.h
> libpq-fe.h:typedef struct pg_conn PGconn;
> hauke(at)fafnir [pgsql] >>grep -H "pg_conn" *.h
> libpq-fe.h:typedef struct pg_conn PGconn;
> hauke(at)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-07-23 15:28:46 Re: php with postgres
Previous Message Tom Lane 2003-07-23 15:09:42 Re: Czech NLS