SPI_preparecan be used with
true if a statement prepared by
SPI_prepare can be passed as an
false if that is not the case. The
criteria are that the plan represents
one single command and that this command returns tuples to the
caller; for example, SELECT is allowed
unless it contains an INTO clause, and
UPDATE is allowed only if it contains a
true or false to indicate if the plan can produce a cursor or not, with SPI_result set to zero. If it is not possible to determine the answer (for example, if the plan is NULL or invalid, or if called when not connected to SPI), then SPI_result is set to a suitable error code and false is returned.
Please use this form to add your own comments regarding your experience with particular features of PostgreSQL, clarifications of the documentation, or hints for other users. Please note, this is not a support forum, and your IP address will be logged. If you have a question or need help, please see the faq, try a mailing list, or join us on IRC. Note that submissions containing URLs or other keywords commonly found in 'spam' comments may be silently discarded. Please contact the webmaster if you think this is happening to you in error.
Proceed to the comment form.