SPI_CURSOR_MOVE(3)

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

πŸ’… SPI_cursor_move β€” the cursor scoot πŸ’…

okay bestie, this is the SPI_CURSOR_MOVE(3) page from the PostgreSQL 15.19 Documentation, and it’s literally all about moving a cursor. no cap. ✨


🌸 NAME 🌸

SPI_cursor_move β€” move a cursor. that’s it, that’s the 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. it’s equivalent to a subset of the SQL command MOVE β€” and if you want more functionality, go check out SPI_scroll_cursor_move. iykyk. πŸ’–

πŸŽ€ ARGUMENTS πŸŽ€

  • Portal portal β€” the portal containing the cursor. your cursor’s home base, fr. 🏠
  • bool forward β€” true for move forward, false for move backward. pick your direction, bestie. βž‘οΈβ¬…οΈ
  • long count β€” maximum number of rows to move. the ceiling, the limit, the max. πŸ”₯

πŸ’€ NOTES πŸ’€

moving backward may fail if the cursor’s plan was not created with the CURSOR_OPT_SCROLL option. that’s the tea: backward scooting may fail if that option wasn’t there when the plan was created. 😭

mwah πŸ’‹ β€” PostgreSQL 15.19, dated 2026, signing off. 🫢

πŸ“¦ where this page comes from