Document repmgr cluster show --csv

This commit is contained in:
Ian Barwick
2016-08-01 16:10:10 +09:00
parent a922cd5558
commit 893d67473d

View File

@@ -1397,6 +1397,18 @@ which contains connection details for the local database.
To show database connection errors when polling nodes, run the command in To show database connection errors when polling nodes, run the command in
`--verbose` mode. `--verbose` mode.
The `cluster show` command now accepts the optional parameter `--csv`, which
outputs the replication cluster's status in a simple CSV format, suitable for
parsing by scripts:
$ repmgr -f /etc/repmgr.conf cluster show --csv
1,-1
2,0
3,1
The first column is the node's ID, and the second column represents the
node's status (0 = master, 1 = standby, -1 = failed).
* `cluster cleanup` * `cluster cleanup`
Purges monitoring history from the `repl_monitor` table to prevent excessive Purges monitoring history from the `repl_monitor` table to prevent excessive
@@ -1475,5 +1487,6 @@ Thanks from the repmgr core team.
Further reading Further reading
--------------- ---------------
* http://blog.2ndquadrant.com/improvements-in-repmgr-3-1-4/
* http://blog.2ndquadrant.com/managing-useful-clusters-repmgr/ * http://blog.2ndquadrant.com/managing-useful-clusters-repmgr/
* http://blog.2ndquadrant.com/easier_postgresql_90_clusters/ * http://blog.2ndquadrant.com/easier_postgresql_90_clusters/