SPI_CURSOR_FETCH(3)
π NAME π
okay bestie, welcome to SPI_CURSOR_FETCH(3) from the PostgreSQL 16.15 Documentation β this one is literally about SPI_cursor_fetch, which fetches some rows from a cursor. iconic behavior, no cap.
β¨ SYNOPSIS β¨
void SPI_cursor_fetch(Portal portal, bool forward, long count)
π¦ DESCRIPTION π¦
So SPI_cursor_fetch fetches some rows from a cursor. Thatβs the whole vibe. π
Itβs equivalent to a subset of the SQL command FETCH β and if you want more functionality, go look at SPI_scroll_cursor_fetch, because that one has extra main character energy. π
π ARGUMENTS π
Portal portalβ the portal containing the cursor π«Άbool forwardβtruefor fetch forward,falsefor fetch backward π₯long countβ maximum number of rows to fetch β
π RETURN VALUE π
If itβs successful, SPI_processed and SPI_tuptable are set as in SPI_execute. periodt. π
πΈ NOTES πΈ
Fetching backward may fail if the cursorβs plan was not created with the CURSOR_OPT_SCROLL option. bestie, consider this your vibe check before going backward. π
mwah π β this little page is sourced from PostgreSQL 16.15, dated 2026. catch you in the next manpage, bestie! πβ¨π¦
π¦ 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