Re: Datum should be defined outside postgres.h - Mailing list pgsql-hackers

From Zdenek Kotala
Subject Re: Datum should be defined outside postgres.h
Date
Msg-id 4720B137.5070700@sun.com
Whole thread Raw
In response to Re: Datum should be defined outside postgres.h  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut wrote:
> Am Donnerstag, 25. Oktober 2007 schrieb Zdenek Kotala:
>> I fixed it for zic, but problem with ecpg is that it includes
>> nodes/primnodes.h and it requires Datum type definition which is defined
>> in postgres.h. :(
> 
> I don't find an inclusion of primnodes.h in ecpg.  Which file are you looking 
> at?
> 

It is indirectly included in parser.c from parser/gramparse.h. Now I 
probably find a solution. I created fake gramparse.h and parser.h into 
ecpg directory (same way as parse.h is faked). It looks fine. Now I'm 
testing it.
    Zdenek


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: PostGreSQL and zlib
Next
From: Tom Lane
Date:
Subject: Re: text search and "filenames"