SPI_CURSOR_MOVE(3)

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

✨ NAME ✨

omg hi bestie πŸ’– welcome to the PostgreSQL 18.6 Documentation page for SPI_CURSOR_MOVE(3) β€” it's literally all about moving a cursor. No cap, that's the whole name vibe: SPI_cursor_move β€” move a cursor. πŸ¦‹


πŸ¦‹ SYNOPSIS πŸ¦‹

void SPI_cursor_move(Portal portal, bool forward, long count)

πŸ’… DESCRIPTION πŸ’…

okay so SPI_cursor_move skips over some number of rows in a cursor. It's giving a subset of the SQL command MOVE β€” and if you want more functionality, go look at SPI_scroll_cursor_move. Periodt. πŸ’…


🌸 ARGUMENTS 🌸

  • Portal portal β€” the portal containing the cursor. That's where the cursor lives, bestie. 🫢
  • bool forward β€” true for move forward, false for move backward. Choose your adventure. ✨
  • long count β€” maximum number of rows to move. Like, the row budget. πŸ”₯

πŸŽ€ NOTES πŸŽ€

⚠️ moving backward may fail if the cursor's plan was not created with the CURSOR_OPT_SCROLL option. So don't be shocked if backward movement isn't giving what you need β€” it's a real caveat, fr fr. 😭

mwah πŸ’‹ that's the whole page. This was SPI_CURSOR_MOVE(3) from PostgreSQL 18.6, dated 2026. byeeee πŸ«ΆπŸ’–

πŸ“¦ where this page comes from