The following bug has been logged on the website:
Bug reference: 6572
Logged by: Hitoshi Harada
Email address: umi(dot)tanuki(at)gmail(dot)com
PostgreSQL version: 9.1.3
Operating system: Any
Description:
http://www.postgresql.org/docs/9.1/static/spi-spi-execute.html
===
SPI_execute("INSERT INTO foo SELECT * FROM bar", false, 5);
will allow at most 5 rows to be inserted into the table.
===
This seems not true unless I'm missing something.