How does the SPI manager know which database to connect using SPI_CONNECT() As there can be more than one datbase in the postgres server, how does it make out which database to connect as we don't specify the datbase name we intend to connect.
On Wed, Aug 30, 2006 at 01:01:32AM -0400, Jasbinder Bali wrote: > Do i need to download spi.h from somewhere or what? I can't see it anywhere
You need the backend header files. In Debian they're in the postgresql-dev package. You'll need to add -I/usr/include/postgresql/server to your compile command to see them.
Hope this helps, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.