SPI_CURSOR_MOVE(3)

πŸ“¦ version 14.24, in opensuse-leap 16.0

✨ 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 β€” true for move forward, false for 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