1、连接高斯出现报错如下:terminating connection due to adminstrator command
原因是高斯默认有session超时时间,若想要session一直保持,需要修改配置项:
先查询
SELECT * FROM pg_settings;
session_timeout如果不为0,一段时间后报如上错误,修改配置项:
ALTER DATABASE postgres SET session_timeout TO 0;
注:若在navicat 执行无权限,可以虚机内直连高斯修改
su omm
source ${BIGDATA_HOME}/mppdb/.mppdbgs_profile
gsql -d postgres -p 25308
2、插入数据时报错:concurrent upadte under Stream mode is not yet supported;
查看官方文档:
同上,先查询配置:
配置项若为off,改为on
ALTER DATABASE postgres SET enable_stream_concurrent_update TO on;