SPI_CURSOR_MOVE(3)
β¨ NAME β¨
okay so bestie, welcome to SPI_CURSOR_MOVE(3) β it's giving PostgreSQL 17.11 docs energy, and this page is all about SPI_cursor_move, which is literally βmove a cursorβ π
. no cap, thatβs the whole 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. lowkey itβs equivalent to a subset of the SQL command MOVE β and if you want more functionality, see SPI_scroll_cursor_move, iykyk π¦.
πΈ ARGUMENTS πΈ
Portal portalβ the portal containing the cursor, aka where the cursor lives π«Άbool forwardβtruefor move forward,falsefor move backward. fr fr, thatβs the direction switch βlong countβ the maximum number of rows to move. iconic limit behavior π
π¦ NOTES π¦
bestie, heads up: moving backward may fail if the cursorβs plan was not created with the CURSOR_OPT_SCROLL option π. not me being dramatic, thatβs just the rule π
mwah π β signing off from the PostgreSQL 17.11 docs, dated 2026, and this was SPI_CURSOR_MOVE(3) π«Ά
π¦ 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