SPI_CURSOR_MOVE(3)
π SPI_CURSOR_MOVE(3) π
okay so bestie, this is the PostgreSQL 13.23 Documentation page for SPI_cursor_move, and it's short, sweet, and fully iconic. Let's get into it πβ¨
π NAME π
SPI_cursor_move β move a cursor, periodt. π
β¨ SYNOPSIS β¨
void SPI_cursor_move(Portal portal, bool forward, long count)
π¦ DESCRIPTION π¦
So SPI_cursor_move literally 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, bestie, go peek at SPI_scroll_cursor_move. πβ¨
πΈ ARGUMENTS πΈ
Portal portalβ the portal containing the cursor. It's the container, the home base, the main character of this parameter list. π«Άbool forwardβtruefor move forward,falsefor move backward. Binary icon behavior, no cap. πlong countβ maximum number of rows to move. Like a row budget, but make it cursor. π₯
π NOTES π
Moving backward may fail if the cursor's plan was not created with the CURSOR_OPT_SCROLL option. So yeah, backward vibes are not guaranteed unless that option is in the mix β that's literally what the docs say. π
xoxo, your PostgreSQL 13.23 documentation bestie, dated 2025, and this is SPI_CURSOR_MOVE(3) saying byeee ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-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