X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 21913D1C4DB for ; Thu, 7 Aug 2003 14:15:31 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 82214-07 for ; Thu, 7 Aug 2003 11:14:10 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 709EED1C4EC for ; Thu, 7 Aug 2003 11:15:19 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h77EFMW25868; Thu, 7 Aug 2003 10:15:22 -0400 (EDT) From: Bruce Momjian Message-Id: <200308071415.h77EFMW25868@candle.pha.pa.us> Subject: Re: ecpg problem in 7.4 beta In-Reply-To: <14915.1060264281@sss.pgh.pa.us> To: Tom Lane Date: Thu, 7 Aug 2003 10:15:22 -0400 (EDT) Cc: PostgreSQL-interfaces , Peter Eisentraut X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/30 X-Sequence-Number: 4384 Tom Lane wrote: > Bruce Momjian writes: > > OK, I think I can fix this. The include of postgres_fe.h was done > > recently: > > > revision 1.54 > > date: 2003/08/01 13:53:36; author: petere; state: Exp; lines: +4 -2 > > Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs, > > rather than parsing the message. Add some documentation about embedded > > SQL. > > > It seems like doing postgres_fe.h rather than postgres_ext.h was just an > > oversight, so I will make the change in CVS. > > I think you will break things if you do. It's unlikely Peter changed > that on a whim --- ecpg probably now requires more than it did before. Peter added libpq_fe.h at the same time, and there is no mention in the commit logs, so I think it was a general cleanup of which things are included. > I am not sure that we want to start treating postgres_fe.h as a public > header though --- if we do, that means also c.h and perhaps other stuff. > This needs some thought. Right. postgres_ext.h works fine in my testing and is the more natural interface. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073