SPI_PREPARE_CURSOR - 아직 실행하지 않고 진술 준비
spiplanptr spi_prepare_cursor (const char *명령
, intNARGS
, OID *Argtypes
, intcursoroptions
)
SPI_PREPARE_CURSOR
동일합니다SPI_PREPARE
- 플래너의 사양을 허용하는 경우를 제외하고“커서 옵션”매개 변수. 이것은 값이 표시되는 비트 마스크입니다.노드/parsenodes.h
용옵션
필드deLareCursorStmt
. SPI_PREPARE
항상 커서 옵션을 0으로 가져옵니다.
const char *명령
명령 문자열
intNARGS
입력 매개 변수 수 ($ 1
, $ 2
등)
OID *Argtypes
배열을 포함하는 배열에 대한 포인터OID매개 변수의 데이터 유형
intcursoroptions
커서 옵션의 정수 비트 마스크; Zero는 기본 동작을 생성합니다
SPI_PREPARE_CURSOR
|SPI_PREPARE
.
유용한 비트에 설정cursoroptions
포함cursor_opt_scroll
, cursor_opt_no_scroll
, cursor_opt_fast_plan
, cursor_opt_generic_plan
및cursor_opt_custom_plan
. 특히cursor_opt_hold
무시됩니다.