本项目是通过 Ansible-Playbook 剧本,自动化部署安装 GreenPlum 数据仓库。 This project uses ansible-playbook script to perform automated deployment and installation of greenplus data warehouse.
License: GNU General Public License v3.0
Shell 100.00%
greenplum's Introduction
基于 Ansible-Playbook 自动化部署 GreenPlum 数据仓库
本项目是通过 Ansible-Playbook 剧本,自动化部署安装 GreenPlum 数据仓库。
版本是:v1.1
This project uses ansible-playbook script to perform automated deployment and installation of greenplus data warehouse.
version: v1.1
select relname from pg_class t where t.relname like 'ods%';
select relname from pg_class t where t.relname like 'kn%';
3.8 统计资源
select gp_segment_id,count(*) from test group by 1 ;
3.9 查询集群状态
SELECT dbid, content, address, port, replication_port, fselocation as datadir FROM gp_segment_configuration, pg_filespace_entry WHERE dbid=fsedbid ORDER BY dbid;
3.10 查看实例配置和状态
select * from gp_segment_configuration order by 1;
select * from pg_stat_activity where waiting ='t' ORDER BY current_query; select * from pg_stat_activity where waiting ='t' ORDER BY sess_id;
select * from pg_stat_activity where waiting ='f' ORDER BY current_query; select * from pg_stat_activity where waiting ='f' ORDER BY sess_id;
select * from pg_tablespace;
select * from pg_filespace;
4.3 查看数据分布
select * from pg_filespace_entry;
SELECT spcname, fsname,fsedbid,fselocation FROM pg_tablespace pgts, pg_filespace pgfs,pg_filespace_entry pgfse WHERE pgts.spcfsoid=pgfse.fsefsoid AND pgfse.fsefsoid=pgfs.oid ORDER BY 1,3;