SPI_CURSOR_FIND(3)
π the SPI_cursor_find bestie briefing π
okay so welcome to SPI_CURSOR_FIND(3), straight from the PostgreSQL 17.11 Documentation π this one is lowkey short but highkey useful, so letβs get into it β¨
πΈ NAME πΈ
SPI_cursor_find - find an existing cursor by name π
π¦ SYNOPSIS π¦
Portal SPI_cursor_find(const char * name)
β¨ DESCRIPTION β¨
SPI_cursor_find finds an existing portal by name. This is primarily useful to resolve a cursor name returned as text by some other function. no cap, thatβs the whole glow-up π
π ARGUMENTS π
const char * nameβ name of the portal π«Ά
π₯ RETURN VALUE π₯
pointer to the portal with the specified name, or NULL if none was found π
π NOTES π
Beware that this function can return a Portal object that does not have cursor-like properties; for example it might not return tuples. If you simply pass the Portal pointer to other SPI functions, they can defend themselves against such cases, but caution is appropriate when directly inspecting the Portal. like bestie, peek responsibly πβ¨
thatβs the whole page, bestie π«Ά β brought to you by PostgreSQL 17.11, dated 2026. mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17-docs 17.11-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