From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: ecpg problem in 7.4 beta |
Date: | 2003-08-07 04:43:31 |
Message-ID: | 200308070443.h774hW211357@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
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.
---------------------------------------------------------------------------
Bruce Momjian wrote:
> I tried running ecpg in 7.4 beta and got:
>
> $ ecpg x.pgc
> $ gcc -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpgtypes -lecpg x.c
> In file included from x.c:4:
> /usr/local/pgsql/include/ecpglib.h:9: postgres_fe.h: No such file or
> directory
>
> Why is ecpglib.h referencing postgres_fe.h? I only see postgres_fe.h in
> the install directory under pgsql/include/internal.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania 19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-08-07 13:51:21 | Re: ecpg problem in 7.4 beta |
Previous Message | Bruce Momjian | 2003-08-07 03:59:56 | Re: ecpg problem in 7.4 beta |