Skip to content

Commit 46c8354

Browse files
authored
Updated README to use '--formation monitor'. (#880)
Fixes #874
1 parent b818ecd commit 46c8354

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Once the building and installation is done, follow those steps:
154154
2. Get the Postgres URI (connection string) for the monitor node:
155155

156156
~~~ bash
157-
$ pg_autoctl show uri --monitor --pgdata ./monitor
157+
$ pg_autoctl show uri --formation monitor
158158
postgres://autoctl_node@localhost:5000/pg_auto_failover?sslmode=require
159159
~~~
160160

src/bin/pg_autoctl/cli_show.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ static void print_all_uri(SSLOptions *ssl,
6767
CommandLine show_uri_command =
6868
make_command("uri",
6969
"Show the postgres uri to use to connect to pg_auto_failover nodes",
70-
" [ --pgdata --monitor --formation --json ] ",
70+
" [ --pgdata --formation --json ] ",
7171
" --pgdata path to data directory\n"
72-
" --monitor show the monitor uri\n"
7372
" --formation show the coordinator uri of given formation\n"
7473
" --json output data in the JSON format\n",
7574
cli_show_uri_getopts,
@@ -94,7 +93,7 @@ CommandLine show_state_command =
9493
"Prints monitor's state of nodes in a given formation and group",
9594
" [ --pgdata --formation --group ] ",
9695
" --pgdata path to data directory \n"
97-
" --monitor show the monitor uri\n"
96+
" --monitor pg_auto_failover Monitor Postgres URL\n"
9897
" --formation formation to query, defaults to 'default' \n"
9998
" --group group to query formation, defaults to all \n"
10099
" --local show local data, do not connect to the monitor\n"

0 commit comments

Comments
 (0)