Redrock Postgres 搜索 英文
版本: 9.3 / 9.4 / 9.5 / 9.6 / 10 / 11 / 12 / 13 / 14 / 15 / 16 / 17 / 18

SPI_cursor_find

SPI_cursor_find — 按名称查找现有游标

概要

Portal SPI_cursor_find(const char * name)

描述

SPI_cursor_find 按名称查找现有的 portal。这主要用于解析其他函数作为文本返回的游标名称。

参数

const char * name

portal 的名称

返回值

指向具有指定名称的 portal 的指针,如果未找到则为 NULL

注释

请注意,此函数可能返回一个不具有游标特性的 Portal 对象;例如,它可能不返回行。如果您只是将 Portal 指针传递给其他 SPI 函数,它们可以自行防御此类情况,但在直接检查 Portal 时应谨慎。