X-Original-To: pgsql-ports-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F294E9FA5D2 for ; Thu, 15 Jun 2006 21:36:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 75805-01 for ; Thu, 15 Jun 2006 21:36:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id AD0CC9FA160 for ; Thu, 15 Jun 2006 21:36:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k5G0aQpS004940; Thu, 15 Jun 2006 20:36:26 -0400 (EDT) To: Andrew Vick cc: pgsql-ports@postgresql.org 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> Comments: In-reply-to Andrew Vick message dated "Thu, 15 Jun 2006 17:27:56 -0500" Date: Thu, 15 Jun 2006 20:36:26 -0400 Message-ID: <4939.1150418186@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/11 X-Sequence-Number: 2452 Andrew Vick 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