pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedlibpq and referencing data type OIDs
2+ messages / 2 participants
[nested] [flat]
* libpq and referencing data type OIDs
@ 2005-04-04 20:58 Marvin Bellamy <marvin.bellamy@innovision.com>
0 siblings, 1 reply; 2+ messages in thread
From: Marvin Bellamy @ 2005-04-04 20:58 UTC (permalink / raw)
To: pgsql-interfaces
I want to use postgres' datatype OID definitions and not use the literal
Oid int values (I'm feeding them into PQexecParams()). But, it looks
like these values are defined in a header not included by libpq-fe.h.
When I try importing catalog/pg_type.h, I get a slew of missing data
type errors. So, what's the appropriate way to reference OID data types?
--
Marvin Keith Bellamy
Software Engineer
Innovision Corporation
913.438.3200
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: libpq and referencing data type OIDs
@ 2005-04-05 03:39 Michael Fuhr <mike@fuhr.org>
parent: Marvin Bellamy <marvin.bellamy@innovision.com>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Fuhr @ 2005-04-05 03:39 UTC (permalink / raw)
To: Marvin Bellamy <marvin.bellamy@innovision.com>; +Cc: pgsql-interfaces
On Mon, Apr 04, 2005 at 03:58:12PM -0500, Marvin Bellamy wrote:
>
> I want to use postgres' datatype OID definitions and not use the literal
> Oid int values (I'm feeding them into PQexecParams()). But, it looks
> like these values are defined in a header not included by libpq-fe.h.
> When I try importing catalog/pg_type.h, I get a slew of missing data
> type errors. So, what's the appropriate way to reference OID data types?
Including postgres.h before catalog/pg_type.h should work. I'm not
sure how appropriate it is for clients to include backend headers,
but it's worked when I've done it.
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-04-05 03:39 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-04 20:58 libpq and referencing data type OIDs Marvin Bellamy <marvin.bellamy@innovision.com>
2005-04-05 03:39 ` Michael Fuhr <mike@fuhr.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox