GROUP(存储组)配置

创建默认GROUP

创建默认GROUP

  1. [tbase@VM_0_29_centos ~]# psql -h 172.16.0.29 -p 15432 -d postgres -U tbase
  2. psql (PostgreSQL 10.0 TBase V2)
  3. Type "help" for help.
  4. postgres=#
  5. create default node group default_group with(dn01, dn02);
  6. create sharding group to group default_group;
  7. clean sharding;

至此,TBase就可以像单机数据库一样使用了。

查询已经创建的GROUP

  1. [tbase@VM_0_29_centos ~]# psql -h 172.16.0.29 -p 15432 -d postgres -U tbase
  2. select * from pgxc_group;