You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
本项目是通过 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;
本项目是通过 Ansible-Playbook 剧本,自动化部署安装 GreenPlum 数据仓库。 This project uses ansible-playbook script to perform automated deployment and installation of greenplus data warehouse.