SPI_SCROLL_CURSOR_MOVE(3pg14)
β¨ NAME β¨
okay so bestie, this is the SPI_SCROL...RSOR_MOVE(3) page from the PostgreSQL 14.24 Documentation β yes, the title has that chaotic truncated energy, but the function is SPI_scroll_cursor_move, and it is literally here to move a cursor. π
SPI_scroll_cursor_move β move a cursor.
πΈ 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 is giving the exact same energy as the SQL command MOVE. Periodt. β¨
π ARGUMENTS π
Portal portalβ the portal containing the cursor. That's the whole container vibe, iykyk. πFetchDirection directionβ one ofFETCH_FORWARD,FETCH_BACKWARD,FETCH_ABSOLUTEorFETCH_RELATIVE. Pick one, bestie. π¦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. This one changes meaning depending ondirection, so read the label fr fr. π
β 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. No rows, no table, no drama. π
π₯ NOTES π₯
See the SQL FETCH(7) command for details of the interpretation of the direction and count parameters. Yes bestie, go read that for the nitty-gritty. π
Heads up: direction values other thanFETCH_FORWARDmay fail if the cursor's plan was not created with theCURSOR_OPT_SCROLLoption. This is not a drill β if the plan wasn't made withCURSOR_OPT_SCROLL, those other directions may fail. π
π cute little sign-off: source/version is PostgreSQL 14.24, and the date on this one is 2026. mwah π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14-docs 14.24-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