Hi!
It's ancient problem for me, in postgres 6.x. And now there is in 7.0 too
If i try to include spi.h, i can't compile my program. Why? Some files,
included from __packaged__ headers, are missing.
Take a look:
--------------- snip ---------------
In file included from /usr/local/pgsql/include/access/xact.h:18, from
/usr/local/pgsql/include/utils/tqual.h:19, from /usr/local/pgsql/include/access/relscan.h:17,
from /usr/local/pgsql/include/nodes/execnodes.h:18, from /usr/local/pgsql/include/executor/spi.h:19,
from my.c:1:
... etc ...
Some others:
/usr/local/pgsql/include/utils/nabstime.h:18: utils/timestamp.h: No such file or directory
/usr/local/pgsql/include/executor/hashjoin.h:18: storage/buffile.h: No such file or directory
/usr/local/pgsql/include/utils/builtins.h:37: utils/date.h: No such file or directory
/usr/local/pgsql/include/utils/builtins.h:38: utils/lztext.h: No such file or directory
/usr/local/pgsql/include/utils/builtins.h:39: utils/varbit.h: No such file or directory
--------------- snap ---------------
But why? Nobody knows it, nobody intrested, or there is a way, to use
somethings from spi.h, without this error.
(my way is to copy all of headers from a source package, but...)
...
any comments?
thanks, and best regards
--nek;(