2025年9月25日: PostgreSQL 18 发布!
支持的版本:当前18)/ 17 / 16 / 15 / 14 / 13
开发版本:devel
不支持的版本:12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2

45.1. 接口函数 #

SPI_connect — 将 C 函数连接到 SPI 管理器
SPI_finish — 将 C 函数从 SPI 管理器断开连接
SPI_execute — 执行命令
SPI_exec — 执行读/写命令
SPI_execute_extended — 带独立参数执行命令
SPI_execute_with_args — 带独立参数执行命令
SPI_prepare — 准备语句,暂不执行
SPI_prepare_cursor — 准备语句,暂不执行
SPI_prepare_extended — 准备语句,暂不执行
SPI_prepare_params — 准备语句,暂不执行
SPI_getargcount — 返回由 SPI_prepare 准备的语句所需的参数数量
SPI_getargtypeid — 返回由 SPI_prepare 准备的语句的参数的数据类型 OID
SPI_is_cursor_plan — 如果由 SPI_prepare 准备的语句可与 SPI_cursor_open 一起使用,则返回 true
SPI_execute_plan — 执行由 SPI_prepare 准备的语句
SPI_execute_plan_extended — 执行由 SPI_prepare 准备的语句
SPI_execute_plan_with_paramlist — 执行由 SPI_prepare 准备的语句
SPI_execp — 以读/写模式执行语句
SPI_cursor_open — 使用由 SPI_prepare 创建的语句设置游标
SPI_cursor_open_with_args — 使用查询和参数设置游标
SPI_cursor_open_with_paramlist — 使用参数设置游标
SPI_cursor_parse_open — 使用查询字符串和参数设置游标
SPI_cursor_find — 按名称查找现有游标
SPI_cursor_fetch — 从游标中获取一些行
SPI_cursor_move — 移动游标
SPI_scroll_cursor_fetch — 从游标中获取一些行
SPI_scroll_cursor_move — 移动游标
SPI_cursor_close — 关闭游标
SPI_keepplan — 保存已准备的语句
SPI_saveplan — 保存已准备的语句
SPI_register_relation — 使一个临时的命名关系可通过名称在 SPI 查询中使用
SPI_unregister_relation — 从注册表中移除一个临时的命名关系
SPI_register_trigger_data — 使临时触发器数据在 SPI 查询中使用

提交更正

如果您在文档中发现任何不正确、与特定功能的实际使用不符或需要进一步阐明的内容,请使用 此表单 报告文档问题。