加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

关于PostgreSQL Cluster的cluster_name

发布时间:2020-12-13 16:42:18 所属栏目:百科 来源:网络整理
导读:[root@yueqi ~]# su - highgoLast login: Tue Feb 13 11:30:45 CST 2018 on pts/1[highgo@yueqi ~]$ psqlpsql (4.1.1)PSQL: Release 4.1.1Connected to:HighGo Database V4.1 Enterprise Edition Release 4.1.1 - 64-bit ProductionType "help" for help.hig
[root@yueqi ~]# su - highgo
Last login: Tue Feb 13 11:30:45 CST 2018 on pts/1
[highgo@yueqi ~]$ psql
psql (4.1.1)
PSQL: Release 4.1.1
Connected to:
HighGo Database V4.1 Enterprise Edition Release 4.1.1 - 64-bit Production
Type "help" for help.
highgo=# show cluster_name ;
cluster_name 
--------------

(1 row)
highgo=# q
若是cluster_name配置了,效果如下,参考自:
https://www.postgresql.org/docs/current/static/monitoring-ps.html
$ psql -c 'SHOW cluster_name'
 cluster_name
--------------
 server1
(1 row)

$ ps aux|grep server1
postgres   27093  0.0  0.0  30096  2752 ?        Ss   11:34   0:00 postgres: server1: writer process
...

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读