SPI_CURSOR_MOVE(3)
β¨ NAME β¨
omg hi bestie π welcome to the PostgreSQL 18.6 Documentation page for SPI_CURSOR_MOVE(3) β it's literally all about moving a cursor. No cap, that's the whole name vibe: SPI_cursor_move β move a cursor. π¦
π¦ SYNOPSIS π¦
void SPI_cursor_move(Portal portal, bool forward, long count)
π DESCRIPTION π
okay so SPI_cursor_move skips over some number of rows in a cursor. It's giving a subset of the SQL command MOVE β and if you want more functionality, go look at SPI_scroll_cursor_move. Periodt. π
πΈ ARGUMENTS πΈ
Portal portalβ the portal containing the cursor. That's where the cursor lives, bestie. π«Άbool forwardβtruefor move forward,falsefor move backward. Choose your adventure. β¨long countβ maximum number of rows to move. Like, the row budget. π₯
π NOTES π
β οΈ moving backward may fail if the cursor's plan was not created with the CURSOR_OPT_SCROLL option. So don't be shocked if backward movement isn't giving what you need β it's a real caveat, fr fr. π
mwah π that's the whole page. This was SPI_CURSOR_MOVE(3) from PostgreSQL 18.6, dated 2026. byeeee π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql18-docs 18.6-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms