GROUP(存储组)配置
创建默认GROUP
创建默认GROUP
[tbase@VM_0_29_centos ~]# psql -h 172.16.0.29 -p 15432 -d postgres -U tbase
psql (PostgreSQL 10.0 TBase V2)
Type "help" for help.
postgres=#
create default node group default_group with(dn01, dn02);
create sharding group to group default_group;
clean sharding;
至此,TBase就可以像单机数据库一样使用了。
查询已经创建的GROUP
[tbase@VM_0_29_centos ~]# psql -h 172.16.0.29 -p 15432 -d postgres -U tbase
select * from pgxc_group;