You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #1363 给 ivorysql.compatible_mode 加了 GUC_DISALLOW_IN_DB_ROLE_SETTING,禁止通过 ALTER USER/ROLE/DATABASE SET 持久化。但同属 PGC_USERSET + GUC_DISALLOW_IN_FILE 的 ivorysql.enable_case_switch(控制 Oracle 兼容模式下的大小写转换功能)遗漏了这个 flag。
GUC_DISALLOW_IN_FILE 的语义是"不应在配置文件里固定",而 ALTER ROLE/DATABASE SET 把设置持久化到 pg_db_role_setting目录——本质同类的持久化绕过。PR #1363 修复了 compatible_mode 的这个漏洞,却漏了同性质的 enable_case_switch。
影响
通过 ALTER ROLE SET ivorysql.enable_case_switch = off 可持久化关闭大小写转换功能,绕过 DISALLOW_IN_FILE 的意图。在共享集群中,一个角色持久化该设置后,所有继承该角色设置的会话都会受影响,破坏 Oracle 兼容模式下大小写转换的一致性。
IvorySQL Version
OS Version (uname -a)
Configuration options ( config.status --config )
Current Behavior
Expected behavior/code
Step to reproduce
Additional context that can be helpful for identifying the problem
Activity
btlqql commentedon Jul 27, 2026
I'd like to fix this. Will add the missing GUC_DISALLOW_IN_DB_ROLE_SETTING flag to ivorysql.enable_case_switch.
fix: add GUC_DISALLOW_IN_DB_ROLE_SETTING to ivorysql.enable_case_switch