From 5e45211a64149b3c659b90ff2de6fa982a5a93ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:17:33 +0200 Subject: Adding upstream version 15.5. Signed-off-by: Daniel Baumann --- doc/src/sgml/html/spi-spi-prepare-extended.html | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 doc/src/sgml/html/spi-spi-prepare-extended.html (limited to 'doc/src/sgml/html/spi-spi-prepare-extended.html') diff --git a/doc/src/sgml/html/spi-spi-prepare-extended.html b/doc/src/sgml/html/spi-spi-prepare-extended.html new file mode 100644 index 0000000..c517aa2 --- /dev/null +++ b/doc/src/sgml/html/spi-spi-prepare-extended.html @@ -0,0 +1,34 @@ + +SPI_prepare_extended

SPI_prepare_extended

SPI_prepare_extended — prepare a statement, without executing it yet

Synopsis

+SPIPlanPtr SPI_prepare_extended(const char * command,
+                                const SPIPrepareOptions * options)
+

Description

+ SPI_prepare_extended creates and returns a prepared + statement for the specified command, but doesn't execute the command. + This function is equivalent to SPI_prepare, + with the addition that the caller can specify options to control + the parsing of external parameter references, as well as other facets + of query parsing and planning. +

Arguments

const char * command

+ command string +

const SPIPrepareOptions * options

+ struct containing optional arguments +

+ Callers should always zero out the entire options + struct, then fill whichever fields they want to set. This ensures forward + compatibility of code, since any fields that are added to the struct in + future will be defined to behave backwards-compatibly if they are zero. + The currently available options fields are: +

ParserSetupHook parserSetup

+ Parser hook setup function +

void * parserSetupArg

+ pass-through argument for parserSetup +

RawParseMode parseMode

+ mode for raw parsing; RAW_PARSE_DEFAULT (zero) + produces default behavior +

int cursorOptions

+ integer bit mask of cursor options; zero produces default behavior +

Return Value

+ SPI_prepare_extended has the same return conventions as + SPI_prepare. +

\ No newline at end of file -- cgit v1.2.3