This issue requires an assignee. Since you haven't specified one, we've assigned TestManager as the default assignee for this issue.


Welcome To openGauss Community
Hey @wuchenlong , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: StorageEngine ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @CityYard, @libiao2024, @lijieac, @theothersideofsea, @wang_bowen, @weithu, @xiong_xjun, @yuanyazhi, @zhangzq131 .


已修复

SQL> alter sess
-- 按一次 Tab



回归版本:oGRAC Release 7.0.0-RC3 18ce0a2 build 2026-08-26 09:48:01
回归环境:oGRAC 双节点(20.20.20.104 / 20.20.20.106),db=ONLINE,节点 20.20.20.104 执行
结论:通过(alter sess / grant create sess 补全为 session,不再误补 session_user)
回归步骤(ogsql / as sysdba,Linux TTY)
SQL> alter sess<Tab>
SQL> grant create sess<Tab>
实际输出
分别变为 alter session、grant create session。pty 自动化断言通过。


测试类型
工具功能
测试版本
7.0.0-LTS
操作系统和硬件信息
openEuler 20.03 aarch64
测试环境
oGRAC双节点
被测功能
ogsql Readline Tab:SQL 关键字补全(ALTER SESSION)
预置条件
TTY 交互
ogsql / as sysdba。官方说明支持补全 SQL 关键字;SQL 参考存在 ALTER SESSION。操作步骤
预期输出
(或候选列表含 session,而非唯一改写成无关标识)
实际输出
(session_user 为函数/标识类候选,不是 ALTER SESSION)
日志信息
提单组织
测试团队