SPI_SCROLL_CURSOR_MOVE(3pg17)
π NAME π
ok so SPI_scroll_cursor_move β it moves a cursor. that's the whole vibe. this is the 3pg17 manual page, straight from the PostgreSQL 17.11 docs, and yes bestie we're gonna get through it together π«Ά
β¨ SYNOPSIS β¨
void SPI_scroll_cursor_move(Portal portal, FetchDirection direction,
long count)
πΈ DESCRIPTION πΈ
SPI_scroll_cursor_move skips over some number of rows in a cursor. it's literally equivalent to the SQL command MOVE. no cap π
π ARGUMENTS π
Portal portalβ the portal containing the cursor. it's giving "where the cursor lives" β¨FetchDirection directionβ one ofFETCH_FORWARD,FETCH_BACKWARD,FETCH_ABSOLUTEorFETCH_RELATIVE. pick ur fighter π¦long countβ number of rows to move forFETCH_FORWARDorFETCH_BACKWARD; absolute row number to move to forFETCH_ABSOLUTE; or relative row number to move to forFETCH_RELATIVE. the way this parameter changes meaning depending on direction? iconic but pay attention π
π₯ RETURN VALUE π₯
SPI_processed is set as in SPI_execute if successful. SPI_tuptable is set to NULL, since no rows are returned by this function. so like, no rows bestie, don't go looking π
π NOTES π
See the SQL FETCH(7) command for details of the interpretation of the direction and count parameters. iykyk π
heads up: direction values other thanFETCH_FORWARDmay fail if the cursor's plan was not created with theCURSOR_OPT_SCROLLoption. not me warning u in advance π
mwah π this page is from PostgreSQL 17.11, dated 2026 β footer tag SPI_SCROL...RSOR_MOVE(3) and all. catch u in the next manpage, bestie π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17-docs 17.11-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms