undocumented parts of SPI - Mailing list pgsql-hackers

From Brook Milligan
Subject undocumented parts of SPI
Date
Msg-id 200102142318.QAA08020@biology.nmsu.edu
Whole thread Raw
List pgsql-hackers
I'm trying to figure out the SPI and need a bit of help, because the
docs do not mention (that I can find) some parts of the interface.

- SPI_exec(char * sql, int count):  this function seems to execute the query.  Is the `count' parameter the maximum
numberof tuples to return?  Does count=0 imply return everything?  Return value are the SPI_* flags defined in spi.h?
 

- SPI_processed:  number of tuples processed during execution of SPI_exec?  Does this equate to N in the
INSERT/DELETE/UPDATEN messages that are emitted by psql?
 

- Are there any restrictions on what types of queries may be executed by a trigger using SPI_exec?

Thanks for the help.

Cheers,
Brook



pgsql-hackers by date:

Previous
From: Erik Hofman
Date:
Subject: Blocking behaviour and other problems
Next
From: Fabio Berbert de Paula
Date:
Subject: <1/2 OFF> PostgreSQL in cluster