Movatterモバイル変換


[0]ホーム

URL:


November 13, 2025: PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 Released!
DocumentationPostgreSQL devel (2025-12-17 20:34:52 - git commitab8af1db430)
Supported Versions:Current (18) /17 /16 /15 /14
Development Versions:devel
Unsupported versions:13 /12 /11 /10 /9.6 /9.5 /9.4 /9.3 /9.2 /9.1 /9.0 /8.4 /8.3 /8.2 /8.1 /8.0 /7.4
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for thecurrent version, or one of the other supported versions listed above instead.
SPI_cursor_fetch
Prev Up45.1. Interface FunctionsHome Next

SPI_cursor_fetch

SPI_cursor_fetch — fetch some rows from a cursor

Synopsis

void SPI_cursor_fetch(Portalportal, boolforward, longcount)

Description

SPI_cursor_fetch fetches some rows from a cursor. This is equivalent to a subset of the SQL commandFETCH (seeSPI_scroll_cursor_fetch for more functionality).

Arguments

Portalportal

portal containing the cursor

boolforward

true for fetch forward, false for fetch backward

longcount

maximum number of rows to fetch

Return Value

SPI_processed andSPI_tuptable are set as inSPI_execute if successful.

Notes

Fetching backward may fail if the cursor's plan was not created with theCURSOR_OPT_SCROLL option.


Prev Up Next
SPI_cursor_find Home SPI_cursor_move

[8]ページ先頭

©2009-2025 Movatter.jp