.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "PG_AUTOCTL STATUS" "1" "Nov 06, 2022" "2.0" "pg_auto_failover" .SH NAME pg_autoctl status \- pg_autoctl status .sp pg_autoctl status \- Display the current status of the pg_autoctl service .SH SYNOPSIS .sp This commands outputs the current process status for the \fBpg_autoctl\fP service running for the given \fB\-\-pgdata\fP location. .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C usage: pg_autoctl status [ \-\-pgdata ] [ \-\-json ] \-\-pgdata path to data directory \-\-json output data in the JSON format .ft P .fi .UNINDENT .UNINDENT .SH OPTIONS .INDENT 0.0 .TP .B \-\-pgdata Location of the Postgres node being managed locally. Defaults to the environment variable \fBPGDATA\fP\&. Use \fB\-\-monitor\fP to connect to a monitor from anywhere, rather than the monitor URI used by a local Postgres node managed with \fBpg_autoctl\fP\&. .TP .B \-\-json Output a JSON formatted data instead of a table formatted list. .UNINDENT .SH ENVIRONMENT .sp PGDATA .INDENT 0.0 .INDENT 3.5 Postgres directory location. Can be used instead of the \fB\-\-pgdata\fP option. .UNINDENT .UNINDENT .sp PG_AUTOCTL_MONITOR .INDENT 0.0 .INDENT 3.5 Postgres URI to connect to the monitor node, can be used instead of the \fB\-\-monitor\fP option. .UNINDENT .UNINDENT .sp XDG_CONFIG_HOME .INDENT 0.0 .INDENT 3.5 The pg_autoctl command stores its configuration files in the standard place XDG_CONFIG_HOME. See the \fI\%XDG Base Directory Specification\fP\&. .UNINDENT .UNINDENT .sp XDG_DATA_HOME .INDENT 0.0 .INDENT 3.5 The pg_autoctl command stores its internal states files in the standard place XDG_DATA_HOME, which defaults to \fB~/.local/share\fP\&. See the \fI\%XDG Base Directory Specification\fP\&. .UNINDENT .UNINDENT .SH EXAMPLE .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C $ pg_autoctl status \-\-pgdata node1 11:26:30 27248 INFO pg_autoctl is running with pid 26618 11:26:30 27248 INFO Postgres is serving PGDATA "/Users/dim/dev/MS/pg_auto_failover/tmux/node1" on port 5501 with pid 26725 $ pg_autoctl status \-\-pgdata node1 \-\-json 11:26:37 27385 INFO pg_autoctl is running with pid 26618 11:26:37 27385 INFO Postgres is serving PGDATA "/Users/dim/dev/MS/pg_auto_failover/tmux/node1" on port 5501 with pid 26725 { "postgres": { "pgdata": "\e/Users\e/dim\e/dev\e/MS\e/pg_auto_failover\e/tmux\e/node1", "pg_ctl": "\e/Applications\e/Postgres.app\e/Contents\e/Versions\e/12\e/bin\e/pg_ctl", "version": "12.3", "host": "\e/tmp", "port": 5501, "proxyport": 0, "pid": 26725, "in_recovery": false, "control": { "version": 0, "catalog_version": 0, "system_identifier": "0" }, "postmaster": { "status": "ready" } }, "pg_autoctl": { "pid": 26618, "status": "running", "pgdata": "\e/Users\e/dim\e/dev\e/MS\e/pg_auto_failover\e/tmux\e/node1", "version": "1.5.0", "semId": 196609, "services": [ { "name": "postgres", "pid": 26625, "status": "running", "version": "1.5.0", "pgautofailover": "1.5.0.1" }, { "name": "node\-active", "pid": 26626, "status": "running", "version": "1.5.0", "pgautofailover": "1.5.0.1" } ] } } .ft P .fi .UNINDENT .UNINDENT .SH AUTHOR Microsoft .SH COPYRIGHT Copyright (c) Microsoft Corporation. All rights reserved. .\" Generated by docutils manpage writer. .