From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Vick <avick@remote-print.com>
Cc: pgsql-ports@postgresql.org
Subject: Re: errcode redefinition
Date: Thu, 15 Jun 2006 20:36:26 -0400
Message-ID: <4939.1150418186@sss.pgh.pa.us> (raw)
In-Reply-To: <4491DEEC.8080708@remote-print.com>
References: <4491C692.9080401@remote-print.com>
<936.1150405283@sss.pgh.pa.us>
<4491D023.7050407@remote-print.com>
<1247.1150407088@sss.pgh.pa.us>
<4491DEEC.8080708@remote-print.com>
Andrew Vick <avick@remote-print.com> writes:
> Tom Lane wrote:
>> Where were those coming from? I'm trying to burrow down to what they're
>> really after that's forcing them to include headers they shouldn't be
>> including ...
> In Postgres, the errors were coming from pg_type.h.
> In Qt. they were coming from src/sql/drivers/psql/qsql_psql.cpp.
> I've glanced through the Qt source, and I don't see any places where
> they try to access the members of any Postgres structures.
If you remove the inclusion of pg_type.h, does it build? I'm thinking
maybe the reason for this pushup is that they need access to the type
OID macros in pg_type.h (INT4OID and friends). I've been thinking
that we need to provide a way for frontend apps to use those macros
without including a bunch of backend-only stuff --- if that's what's
going on here, that would be ammunition to propose a change.
I'd appreciate it if you include postgres_fe.h instead of postgres.h,
remove any other PG header inclusions that cause errors without
postgres.h, and then see what errors are left in the Qt code.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-ports@postgresql.org
Cc: tgl@sss.pgh.pa.us, avick@remote-print.com
Subject: Re: errcode redefinition
In-Reply-To: <4939.1150418186@sss.pgh.pa.us>
References: <4491C692.9080401@remote-print.com> <936.1150405283@sss.pgh.pa.us> <4491D023.7050407@remote-print.com> <1247.1150407088@sss.pgh.pa.us> <4491DEEC.8080708@remote-print.com> <4939.1150418186@sss.pgh.pa.us>
* 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