Thread: Errors on compiling Trigger example Pgsql 6.5.3

Errors on compiling Trigger example Pgsql 6.5.3

From
Thomas Egge
Date:
Dear list

I am trying to compile the example from Chapter 13. Triggers from the
PostgreSQL Programmers's Guide.



If I include following header-files:
#include "executor/spi.h"
#include "commands/trigger.h"

I get the following errors:

c++ -DHAVE_CONFIG_H -I. -I. -I..     -O0 -g3 -Wall   -I
/usr/local/pgsql/include -L /usr/local/pgsql/lib  -c trigf.cpp In file included
from /usr/local/pgsql/include/nodes/relation.h:16,                  from
/usr/local/pgsql/include/executor/spi.h:14,                  from dbicp.cpp:6:
/usr/local/pgsql/include/nodes/parsenodes.h:698: parse error before `typename'
/usr/local/pgsql/include/nodes/parsenodes.h:738: parse error before `typename'
/usr/local/pgsql/include/nodes/parsenodes.h:770: parse error before `typename'
/usr/local/pgsql/include/nodes/parsenodes.h:874: parse error before `;'
/usr/local/pgsql/include/nodes/parsenodes.h:875: parse error before `typename'
In file included from /usr/local/pgsql/include/utils/rel.h:17,
                 from /usr/local/pgsql/include/access/relscan.h:17,
                 from /usr/local/pgsql/include/nodes/execnodes.h:19,
                 from /usr/local/pgsql/include/executor/spi.h:15,
                 from dbicp.cpp:6:
/usr/local/pgsql/include/access/tupdesc.h:71: parse error before `typeid'
make: *** [trigf.o] Error 1

Is this a common problem ?
Can anybody help me ?

With best regards

--
Thomas Egge
Softwareentwicklung
RATIO Entwicklungen GmbH
Phone :+49-(0)40-369007-20              Admiralit�tstr. 59
Fax:   +49-(0)40-369007-75              20459 Hamburg
Email: mailto:teg@ratio.de

JDBC 2.0

From
Joe666
Date:
Wondering if the JDBC driver shipped with postgresql 6.5.3 supports the
JDBC 2.0 API.

Does anyone know if that driver is enough or i should get another one,
if so, where can i get it ?

--
Joe666
Ego Diabolo.
Oram Pater Tuum In Abscondito.
Gnovus Networks & Software.

Re: [GENERAL] JDBC 2.0

From
Peter Mount
Date:
On Tue, 25 Jan 2000, Joe666 wrote:

>
> Wondering if the JDBC driver shipped with postgresql 6.5.3 supports the
> JDBC 2.0 API.

It supports some of it. I'm working on the rest at the moment.

> Does anyone know if that driver is enough or i should get another one,
> if so, where can i get it ?

The only other one I know of is the Openlink one, but its commercial and
not as portable.

Peter

--
       Peter T Mount peter@retep.org.uk
      Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
 Java PDF Generator: http://www.retep.org.uk/pdf