SPI_CURSOR_MOVE(3)
π
SPI_cursor_move β the cursor scoot π
okay bestie, this is the SPI_CURSOR_MOVE(3) page from the PostgreSQL 15.19 Documentation, and itβs literally all about moving a cursor. no cap. β¨
πΈ NAME πΈ
SPI_cursor_move β move a cursor. thatβs it, thatβs the vibe. π
β¨ SYNOPSIS β¨
void SPI_cursor_move(Portal portal, bool forward, long count)
π¦ DESCRIPTION π¦
SPI_cursor_move skips over some number of rows in a cursor. itβs equivalent to a subset of the SQL command MOVE β and if you want more functionality, go check out SPI_scroll_cursor_move. iykyk. π
π ARGUMENTS π
Portal portalβ the portal containing the cursor. your cursorβs home base, fr. πbool forwardβtruefor move forward,falsefor move backward. pick your direction, bestie. β‘οΈβ¬ οΈlong countβ maximum number of rows to move. the ceiling, the limit, the max. π₯
π NOTES π
moving backward may fail if the cursorβs plan was not created with the CURSOR_OPT_SCROLL option. thatβs the tea: backward scooting may fail if that option wasnβt there when the plan was created. π
mwah π β PostgreSQL 15.19, dated 2026, signing off. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15-docs 15.19-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