选择 打开 改范围 完整检索页

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

百科 / 错误代码 / Class 2B 依赖权限描述符仍存在

2B000 dependent_privilege_descriptors_still_exist

依赖权限描述符仍存在

ERROR 仅定义 参考 未实测

类别
Class 2B 依赖权限描述符仍存在
严重等级
ERROR
条件名
dependent_privilege_descriptors_still_exist
宏名称
ERRCODE_DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST
启用版本
7.4
状态
活跃

版本覆盖

速览

2B000 是目录定义中的依赖权限描述符条件。本批固定源码扫描没有解析出独立的核心 2B000 抛出点,因此本页只记录定义边界,不把角色、REVOKE 或 DROP 结果擅自标成 2B000。普通对象依赖见 2BP01

含义

2B000 表示 2B 类中的依赖权限描述符条件。固定的 PostgreSQL 18.6 调用扫描没有解析出独立的核心 ereport 路径,因此必须把它与依赖对象仍存在的 2BP01,以及 425010LP01 等具体授权/授权操作错误分开。

诊断

如果扩展或特定版本路径报告该码,应保留组件指出的对象或权限描述符,并收集主报文、DETAIL、HINT。不能从失败的 DROPGRANT 推断出 2B000:固定核心扫描没有选定的自然触发器;代表性对象依赖路径由依赖遍历器报告 2BP01

处理

不能只凭类别名执行 DROP ... CASCADE、撤销权限或重试。先找出拥有该描述符的组件,按其文档修复,再核对 ACL/依赖状态。在解析出真实服务器路径前,这一页只是源码/定义边界,不能保证普通 SQL 事务能产生 2B000

可复现案例

在一次性实例上执行过的场景。

dependent_privilege_boundary PG 10 / 18

前置条件

  • A runner-owned disposable target is provisioned.

触发

No artificial privilege-revocation case is executed.

处置

Inspect dependent privileges and choose an explicit revoke/ownership operation; do not relabel a dependent-object DROP as 2B000.

清理

Drop the case schema with an owner connection.

版本

上面的锁定事实表记录项目快照范围内的目录存在情况。固定源码证据只覆盖下面声明的路径;不能仅从定义推导精确行为引入版本或更广的运行覆盖。

来源

证据

断言

每条断言都写明了是怎么核实的,以及它不覆盖什么。这一层是核验时留下的原始英文记录,照原样呈现,未经翻译。

  • 2B000 is the dependent_privilege_descriptors_still_exist condition in Class 2B.

    核实方式Read the fixed errcodes.txt row and macro mapping.

    不覆盖This records the protocol definition and does not imply a natural PostgreSQL throw path.

    来源src/backend/utils/errcodes.txt

  • No distinct safe natural core runtime case for 2B000 was selected from the fixed call scan.

    核实方式Review the fixed call scan for resolved 2B000 call groups and reject artificial RAISE or relabeling.

    不覆盖This is a bounded source/definition result, not proof that every extension or injected fault cannot emit the code.

    来源raw/calls/REL_18_6.jsonl

同类错误代码

Class 2B 依赖权限描述符仍存在 下的其他成员。