暂无图片
暂无图片
2
暂无图片
暂无图片
暂无图片

opengauss 5.0.0 向上键乱码无法查看历史命令

适用范围

openGauss 5.0.0 and later

问题概述

【标题描述】: opengauss 5.0.0 向上键乱码无法查看历史命令 【测试类型:SQL功能/存储功能/接口功能/工具功能/性能/并发/压力长稳/故障注入/安全/资料/编码规范】【测试版本:5.0.0】 问题描述 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): [omm@og ~]$ gsql -d postgres gsql ((openGauss 5.0.0 build 2e619658) compiled at 2023-07-14 18:12:41 commit 0 last mr debug) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. openGauss=# \d List of relations Schema | Name | Type | Owner | Storage --------+------+-------+-------+---------------------------------- public | test | table | omm | {orientation=row,compression=no} (1 row) openGauss=# \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+-------+----------+-------------+-------------+------------------- postgres | omm | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | template0 | omm | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/omm + | | | | | omm=CTc/omm template1 | omm | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/omm + | | | | | omm=CTc/omm (3 rows) openGauss=# ^[[A^[[A^[[A^[[A [root@og openGauss]# cat /etc/system-release CentOS Linux release 7.6.1810 (Core) [root@og openGauss]# uname -a Linux og 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux [root@og ~]#

问题原因

使用快捷键如 pagedone pageup上线翻页键、 部分关键字联想等,需要加上 -r 参数开启readline的功能。 即

解决方案

使用快捷键如 pagedone pageup上线翻页键、 部分关键字联想等,需要加上 -r 参数开启readline的功能。 即 gsql -d postgres -p 5432 -r

参考文档

https://gitee.com/opengauss/openGauss-server/issues/I7OJJQ
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论