[HACKERS] Missing types in C header files
Hi, I'm trying to start to program with the PostgreSQL's geometric primitive types, and have started to write some code using them (PostgreSQL version 7.1.3, installed from source). However when I include the file utils/geo_decls.h I get an error starting that the type PGFunction (found in a file included from geo_decls.h) cannot be found. I've done a search of all the header files in my installation (and also all the source files that I compiled), and cannot find the definition of the PGFunction type. Does anyone have any idea of where I can find this definition, or of why it might be missing. -- Tony ----- Dr. Tony Griffiths Research Fellow Information Management Group, Department of Computer Science, The University of Manchester, Oxford Road, Manchester M13 9PL, United Kingdom Tel. +44 (0) 161 275 6139 Fax +44 (0) 161 275 6236 email [EMAIL PROTECTED] - ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
Re: [HACKERS] Missing types in C header files
I've looked in fmgr.h and there is no definition of this type there - it uses the type, but does not define it. Peter Eisentraut wrote: > > Tony Griffiths writes: > > > I've done a search of all the header files in my installation (and also > > all the source files that I compiled), and cannot find the definition of > > the PGFunction type. Does anyone have any idea of where I can find this > > definition, or of why it might be missing. > > fmgr.h > > -- > Peter Eisentraut [EMAIL PROTECTED] > > ---(end of broadcast)--- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org -- Tony - Dr. Tony Griffiths Research Fellow Information Management Group, Department of Computer Science, The University of Manchester, Oxford Road, Manchester M13 9PL, United Kingdom Tel. +44 (0) 161 275 6139 Fax +44 (0) 161 275 6236 email [EMAIL PROTECTED] - ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
Re: [HACKERS] ADTs and embedded sql
Thomas Lockhart wrote: > > > Ah, I see --- more or less make all of utils/adt/ available to be > > linked into clients. > > > That is a Good Idea in principle. In practice, ... > > Yeah, it'd be a huge amount of work. For starters, all that code > > relies on the backend environment for error handling and memory > > management... > > It would be a large amount of work to make *all* of utils/adt available. > However, the initial work would be to support I/O to get values > converted to internal storage. Michael M. already has to do some of this > for ecpg, and presumably we could do this for more types (or maybe *all* > builtin types are already supported in this way by ecpg, in which case > MM has already done all of the hard work, and we might just repackage > it). > > A first cut would seem to be appropriate, if someone would like to pick > up the work. Tony?? ;) I'd love to get involved in this, BUT... no time at the moment, although if I get a really good Masters student next semester - I could always do this as their project. If this is still a requirement in about 3 months then I can set someone on to it. Tony > > - Thomas > > ---(end of broadcast)--- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html -- Tony - Dr. Tony Griffiths Research Fellow Information Management Group, Department of Computer Science, The University of Manchester, Oxford Road, Manchester M13 9PL, United Kingdom Tel. +44 (0) 161 275 6139 Fax +44 (0) 161 275 6236 email [EMAIL PROTECTED] - ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org
Re: [HACKERS] Missing types in C header files
I've found the mistake - as usual it's down to me! I didn't realise that I had to include postgres.h before including geo_decls.h All now compiles ok. Tony Tony Griffiths wrote: [EMAIL PROTECTED]"> I've looked in fmgr.h and there is no definition of this type there - ituses the type, but does not define it.Peter Eisentraut wrote: Tony Griffiths writes: I've done a search of all the header files in my installation (and alsoall the source files that I compiled), and cannot find the definition ofthe PGFunction type. Does anyone have any idea of where I can find thisdefinition, or of why it might be missing. fmgr.h--Peter Eisentraut [EMAIL PROTECTED]---(end of broadcast)---TIP 6: Have you searched our list archives?http://archives.postgresql.org