Skip to content

Commit

Permalink
Updated README to use '--formation monitor'. (#880)
Browse files Browse the repository at this point in the history
Fixes #874
  • Loading branch information
chewygranola committed May 30, 2022
1 parent b818ecd commit 46c8354
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Once the building and installation is done, follow those steps:
2. Get the Postgres URI (connection string) for the monitor node:

~~~ bash
$ pg_autoctl show uri --monitor --pgdata ./monitor
$ pg_autoctl show uri --formation monitor
postgres://autoctl_node@localhost:5000/pg_auto_failover?sslmode=require
~~~

Expand Down
5 changes: 2 additions & 3 deletions src/bin/pg_autoctl/cli_show.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ static void print_all_uri(SSLOptions *ssl,
CommandLine show_uri_command =
make_command("uri",
"Show the postgres uri to use to connect to pg_auto_failover nodes",
" [ --pgdata --monitor --formation --json ] ",
" [ --pgdata --formation --json ] ",
" --pgdata path to data directory\n"
" --monitor show the monitor uri\n"
" --formation show the coordinator uri of given formation\n"
" --json output data in the JSON format\n",
cli_show_uri_getopts,
Expand All @@ -94,7 +93,7 @@ CommandLine show_state_command =
"Prints monitor's state of nodes in a given formation and group",
" [ --pgdata --formation --group ] ",
" --pgdata path to data directory \n"
" --monitor show the monitor uri\n"
" --monitor pg_auto_failover Monitor Postgres URL\n"
" --formation formation to query, defaults to 'default' \n"
" --group group to query formation, defaults to all \n"
" --local show local data, do not connect to the monitor\n"
Expand Down

0 comments on commit 46c8354

Please sign in to comment.