
1.3 主备数据验证
-- 节点一
[omm@opengauss-node1 ~]$ gsql -d postgres -p 26000
postgres=# create table pgtb1 (id int,name text);
postgres-# \d+ pgtb1 #查看表结构
postgres=# insert into pgtb1 (id,name) values(1,'Jacky');
postgres=# select * from pgtb1;
-- 节点二
[omm@opengauss-node2 ~]$ gsql -d postgres -p 26000
postgres=# select * from pgtb1;
postgres=# insert into pgtb1 (id,name) values(2,'DBA'); # 提示备库只有只读权
限
1
2
3
4
5
6
7
8
9
10
11
文档被以下合辑收录
相关文档
评论