Database Reference
In-Depth Information
There is more explanation at
http://www.postgresql.org/docs/current/static/spi-ex-
amples.html
in the
Sample session
section.
More info on SPI_* functions
There is a lot more information on specific
SPI_*()
functions in the official docu-
mentation.
For PostgreSQL Version 9.2 functions,
http://www.postgresql.org/docs/9.2/static/
spi.html
is the starting point for the SPI docs.
More sample code is also available in the PostgreSQL source in regression tests at
src/test/regress/regress.c
and in the
contrib/spi/
module.