pgd commit-scopes list#

Synopsis#

The pgd commit-scopes list command is used to list the commit scopes information for the EDB Postgres Distributed cluster.

Users and roles#

Requires the bdr_superuser role. See User roles .

Syntax#

pgd commit-scopes list [OPTIONS] [GROUP_NAME]

Where GROUP_NAME is the name of the group for which you want to list the commit scopes. If not provided, all commit scopes in the cluster are listed.

Options#

No command specific options. See the Global Options for common global options.

Examples#

List all commit-scopes#

pgd commit-scopes list
__OUTPUT__
 Commit Scope     | Group Name | Rule Definition
- -----------------+------------+-----------------------------------------------------------------------------------------------------------------------
 local protect    | pgdx6      | ASYNCHRONOUS COMMIT
 lag protect      | pgdx6      | MAJORITY ORIGIN GROUP LAG CONTROL (max_lag_time = 30s, max_commit_delay = 10s)
 majority protect | pgdx6      | MAJORITY ORIGIN GROUP SYNCHRONOUS COMMIT
 adaptive protect | pgdx6      | MAJORITY ORIGIN GROUP SYNCHRONOUS COMMIT DEGRADE ON (timeout = 10s, require_write_lead = true) TO ASYNCHRONOUS COMMIT
 subgroup protect | group-a    | ALL (group-a) SYNCHRONOUS COMMIT

List all commit-scopes for the given group#

pgd commit-scopes list group-a
__OUTPUT__
pgd commit-scopes list group-a
 Commit Scope     | Group Name | Rule Definition
- -----------------+------------+----------------------------------
 subgroup protect | group-a    | ALL (group-a) SYNCHRONOUS COMMIT