当前从库状态
[2022-07-20 16:16:35.377][22720][][gs_ctl]: gs_ctl query ,datadir is /opt/opengauss/data
HA state:
local_role : Standby
static_connections : 1
db_state : Normal
detail_information : FATAL: Forbid remote connection with initial user.
FATAL: Forbid remote connection with initial user.
sync_mode : Async
Senders info:
No information
Receiver info:
No information
停掉从库
[omm@localhost data]$ gs_ctl stop -D /opt/opengauss/data
[2022-07-20 16:16:55.580][22765][][gs_ctl]: gs_ctl stopped ,datadir is /opt/opengauss/data
waiting for server to shut down.... done
server stopped
主库无法写入数据
db_test=# insert into tb_test values(5,'name5');
一直hang住这里