undocumented parts of SPI

Поиск
Список
Период
Сортировка
От Brook Milligan
Тема undocumented parts of SPI
Дата
Msg-id 200102142318.QAA08020@biology.nmsu.edu
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Erik Hofman
Дата:
Сообщение: Blocking behaviour and other problems
Следующее
От: Fabio Berbert de Paula
Дата:
Сообщение: <1/2 OFF> PostgreSQL in cluster