greenplum 常用维护基础表 跟命令

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Brighter_Xiao/article/details/84563684
  1. greenplum 基础维护常见表
    1、gp_segment_configuration 这个是gp 的集群基本信息表,他记录每个实例的状态根端口

    2、pg_stat_activity 查看进程数

    3、pg_stat_user_tables 查看表

    4、pg_stat_replication 查看standby 的状态

    5、pg_partitions 查看分区表

  2. Gp 基础维护常用命令
    1、gpstate –s 展示集群的详细信息,包括主机名,端口,状态

    2、 gpstate –s 只展示mirror的状态信息

    3、 gpstate –f 查看standby的信息

    4、 gpstop -M fast 快速停止gp

    5、 gpstop -u 重新加载postgresql.conf and pg_hba.conf 不影响业务

    6、 gpstart 正常启动gp

    扫描二维码关注公众号,回复: 4260787 查看本文章

    7、 PGOPTIONS=‘-c gp_session_role=utility’ psql 登录单个数据段

猜你喜欢

转载自blog.csdn.net/Brighter_Xiao/article/details/84563684
今日推荐