pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Vick <avick@remote-print.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-ports@postgresql.org
Subject: Re: errcode redefinition
Date: Thu, 15 Jun 2006 17:27:56 -0500
Message-ID: <4491DEEC.8080708@remote-print.com> (raw)
In-Reply-To: <1247.1150407088@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>

Tom Lane wrote:
> Andrew Vick <avick@remote-print.com> writes:
> 
>>Tom Lane wrote:
>>
>>>Why are these drivers trying to include elog.h?  That's a backend-only
>>>header.  If the reason is that they're including postgres.h, they should
>>>likely be including postgres_fe.h instead.
> 
> 
>>That is the case.  I tried switching it to postgres_fe.h, but then I
>>got errors about the pg_type structure not being defined.
> 
> 
> 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.  I believe Qt is just wrapping the C interface to the Postgres libraries; maybe the problem is that this version of Qt (3.3.6) is too old for this version of Postgres (8.1 stable).  Perhaps the Postgres headers have changed since the 8.0 release to cause this, and this release of Qt predates the change.  If it weren't for that problem with errcode, I might be using an earlier version of Postgres.

-Andrew




view thread (6+ messages)  latest in thread

Message-ID: <4491DEEC.8080708@remote-print.com>
Permalink:  ../4491DEEC.8080708@remote-print.com/
Also on:    postgresql.org/message-id/4491DEEC.8080708@remote-print.com

 · 

reply

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: avick@remote-print.com, tgl@sss.pgh.pa.us
  Subject: Re: errcode redefinition
  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>

* 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