SPI_CURSOR_MOVE(3)
π« SPI_CURSOR_MOVE(3) π«
okay so bestie, this one's from the PostgreSQL 16.15 Documentation β it's a SPI (server programming interface) function, and it's literally just about scooting a cursor around. lowkey iconic, fr fr.
β¨ NAME β¨
SPI_cursor_move β move a cursor π
πΈ SYNOPSIS πΈ
void SPI_cursor_move(Portal portal, bool forward, long count)
that's the whole thing. she's short, she's sweet, she does exactly one job π
π¦ DESCRIPTION π¦
so SPI_cursor_move skips over some number of rows in a cursor. that's it. that's the vibe β¨
it's equivalent to a subset of the SQL command MOVE β and if you want more functionality than this little subset gives you, go check out SPI_scroll_cursor_move instead. iykyk π«Ά
π ARGUMENTS π
Portal portalβ the portal containing the cursor. that's your cursor's home base, her main character location πbool forwardβtruemeans move forward,falsemeans move backward. yes queen, direction matters πlong countβ the maximum number of rows to move. emphasis on maximum β she's not gonna move more than that, no cap π«
π NOTES π
β οΈ moving backward may fail if the cursor's plan was not created with the CURSOR_OPT_SCROLL option. so likeβ¦ if you're going backwards and it's not working, that's probably why. not your fault bestie, it's the plan π
π SEE ALSO π
not gonna lie, the original page doesn't list any SEE ALSO references β so there's nothing to link here, and we're not about to invent one, periodt π
so yeah! that's the whole page. go forth and move those cursors, bestie β forward or backward (assuming your plan is scroll-y enough). πβπ
this page came to you from PostgreSQL 16.15, dated 2026 β and it's the SPI_CURSOR_MOVE(3) page in the PostgreSQL documentation set. mwah, bye πππ§
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16-docs 16.15-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