1PG_AUTOCTL CONFIG CHECK(1)     pg_auto_failover     PG_AUTOCTL CONFIG CHECK(1)
2
3
4

NAME

6       pg_autoctl config check - pg_autoctl config check
7
8       pg_autoctl config check - Check pg_autoctl configuration
9

SYNOPSIS

11       This command implements a very basic list of sanity checks for a pg_au‐
12       toctl node setup:
13
14          usage: pg_autoctl config check  [ --pgdata ] [ --json ]
15
16          --pgdata      path to data directory
17          --json        output data in the JSON format
18

OPTIONS

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

EXAMPLES

29          $ pg_autoctl config check --pgdata node1
30          18:37:27 63749 INFO  Postgres setup for PGDATA "/Users/dim/dev/MS/pg_auto_failover/tmux/node1" is ok, running with PID 5501 and port 99698
31          18:37:27 63749 INFO  Connection to local Postgres ok, using "port=5501 dbname=demo host=/tmp"
32          18:37:27 63749 INFO  Postgres configuration settings required for pg_auto_failover are ok
33          18:37:27 63749 WARN  Postgres 12.1 does not support replication slots on a standby node
34          18:37:27 63749 INFO  Connection to monitor ok, using "postgres://autoctl_node@localhost:5500/pg_auto_failover?sslmode=prefer"
35          18:37:27 63749 INFO  Monitor is running version "1.5.0.1", as expected
36          pgdata:                /Users/dim/dev/MS/pg_auto_failover/tmux/node1
37          pg_ctl:                /Applications/Postgres.app/Contents/Versions/12/bin/pg_ctl
38          pg_version:            12.3
39          pghost:                /tmp
40          pgport:                5501
41          proxyport:             0
42          pid:                   99698
43          is in recovery:        no
44          Control Version:       1201
45          Catalog Version:       201909212
46          System Identifier:     6941034382470571312
47          Latest checkpoint LSN: 0/6000098
48          Postmaster status:     ready
49

AUTHOR

51       Microsoft
52
54       Copyright (c) Microsoft Corporation. All rights reserved.
55
56
57
58
591.6                              Aug 04, 2022       PG_AUTOCTL CONFIG CHECK(1)
Impressum