SPI_CURSOR_MOVE(3)
β¨ SPI_CURSOR_MOVE(3) β¨
okay so bestie, we're in the PostgreSQL 14.24 Documentation, and this is the SPI_CURSOR_MOVE(3) page β aka the little manual page about moving a cursor. no cap, it's giving "tiny but useful." π
πΈ NAME πΈ
SPI_cursor_move β move a cursor. literally what it says on the tin, bestie. π
π¦ SYNOPSIS π¦
void SPI_cursor_move(Portal portal, bool forward, long count)
π DESCRIPTION π
SPI_cursor_move skips over some number of rows in a cursor. yes, it's doing that little "hop over here" moment. β¨
This is equivalent to a subset of the SQL command MOVE β and if you want more functionality, go peek at SPI_scroll_cursor_move. iykyk. π
π ARGUMENTS π
Portal portalβ the portal containing the cursor. it's the holder of the cursor vibes. π«Άbool forwardβtruefor move forward,falsefor move backward. simple as that. βlong countβ maximum number of rows to move. that's the row budget, bestie. π
π NOTES π
Moving backward may fail if the cursor's plan was not created with the CURSOR_OPT_SCROLL option. so like, watch out for that one π β it's a real "may fail," not a "definitely will," but still.
mwah π this iconic little page is from PostgreSQL 14.24, dated 2026, and it is the SPI_CURSOR_MOVE(3) manual page. slay and goodbye, bestie π
π¦ 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