↑↓ 选择 ↵ 打开 ⌫ 改范围 完整检索页

pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。

文档 / 扩展钩子 / 执行计划说明

explain_get_index_name_hook

EXPLAIN 索引名称

为执行计划中的索引提供显示名称。

当前查看 PostgreSQL 18。

说明

EXPLAIN 输出索引名称前调用此钩子,以索引 OID 查询扩展提供的名称。返回空指针时继续使用核心的名称查找路径;这为规划阶段构造的特殊索引对象提供显示入口。

接口类型
explain_get_index_name_hook_type
声明头文件
src/include/commands/explain.h
调用阶段
执行计划说明
初始值
NULL(未安装钩子)

接口签名

typedef const char *(*explain_get_index_name_hook_type) (Oid indexId);
extern PGDLLIMPORT explain_get_index_name_hook_type explain_get_index_name_hook;

调用位置

src/backend/commands/explain.c:4027

相关条目

文档与源码

查看来源构建
版本
18
构建
REL_18_STABLE
来源指纹
753057e340da8f22e57c9a409ea7a235fd6a46bd

同类条目

返回扩展钩子 · 此条目的收录范围为 PostgreSQL 10 至 20;起点不一定是实际引入版本。