From: Michael Fuhr <mike@fuhr.org>
To: Marvin Bellamy <marvin.bellamy@innovision.com>
Cc: 'pgsql-interfaces@postgresql.org' <pgsql-interfaces@postgresql.org>
Subject: Re: libpq and referencing data type OIDs
Date: Mon, 4 Apr 2005 21:39:33 -0600
Message-ID: <20050405033933.GA21612@winnie.fuhr.org> (raw)
In-Reply-To: <4251AA64.7040909@innovision.com>
References: <4251AA64.7040909@innovision.com>
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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: mike@fuhr.org, marvin.bellamy@innovision.com
Subject: Re: libpq and referencing data type OIDs
In-Reply-To: <20050405033933.GA21612@winnie.fuhr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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