1PG_AUTOCTL STATUS(1)           pg_auto_failover           PG_AUTOCTL STATUS(1)
2
3
4

NAME

6       pg_autoctl status - pg_autoctl status
7
8       pg_autoctl  status  - Display the current status of the pg_autoctl ser‐
9       vice
10

SYNOPSIS

12       This commands outputs the current process  status  for  the  pg_autoctl
13       service running for the given --pgdata location.
14
15          usage: pg_autoctl status  [ --pgdata ] [ --json ]
16
17          --pgdata      path to data directory
18          --json        output data in the JSON format
19

OPTIONS

21       --pgdata
22              Location of the Postgres node being managed locally. Defaults to
23              the environment variable PGDATA. Use --monitor to connect  to  a
24              monitor from anywhere, rather than the monitor URI used by a lo‐
25              cal Postgres node managed with pg_autoctl.
26
27       --json Output a JSON formated data instead of a table formatted list.
28

EXAMPLE

30          $ pg_autoctl status --pgdata node1
31          11:26:30 27248 INFO  pg_autoctl is running with pid 26618
32          11:26:30 27248 INFO  Postgres is serving PGDATA "/Users/dim/dev/MS/pg_auto_failover/tmux/node1" on port 5501 with pid 26725
33
34          $ pg_autoctl status --pgdata node1 --json
35          11:26:37 27385 INFO  pg_autoctl is running with pid 26618
36          11:26:37 27385 INFO  Postgres is serving PGDATA "/Users/dim/dev/MS/pg_auto_failover/tmux/node1" on port 5501 with pid 26725
37          {
38              "postgres": {
39                  "pgdata": "\/Users\/dim\/dev\/MS\/pg_auto_failover\/tmux\/node1",
40                  "pg_ctl": "\/Applications\/Postgres.app\/Contents\/Versions\/12\/bin\/pg_ctl",
41                  "version": "12.3",
42                  "host": "\/tmp",
43                  "port": 5501,
44                  "proxyport": 0,
45                  "pid": 26725,
46                  "in_recovery": false,
47                  "control": {
48                      "version": 0,
49                      "catalog_version": 0,
50                      "system_identifier": "0"
51                  },
52                  "postmaster": {
53                      "status": "ready"
54                  }
55              },
56              "pg_autoctl": {
57                  "pid": 26618,
58                  "status": "running",
59                  "pgdata": "\/Users\/dim\/dev\/MS\/pg_auto_failover\/tmux\/node1",
60                  "version": "1.5.0",
61                  "semId": 196609,
62                  "services": [
63                      {
64                          "name": "postgres",
65                          "pid": 26625,
66                          "status": "running",
67                          "version": "1.5.0",
68                          "pgautofailover": "1.5.0.1"
69                      },
70                      {
71                          "name": "node-active",
72                          "pid": 26626,
73                          "status": "running",
74                          "version": "1.5.0",
75                          "pgautofailover": "1.5.0.1"
76                      }
77                  ]
78              }
79          }
80

AUTHOR

82       Microsoft
83
85       Copyright (c) Microsoft Corporation. All rights reserved.
86
87
88
89
901.6                              Nov 24, 2021             PG_AUTOCTL STATUS(1)
Impressum