pgd commit-scopes list v6.1.0
Synopsis
The pgd commit-scopes list
command is used to list the commit scopes information for the EDB Postgres Distributed cluster.
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](../#global-options) for common global options. ## Examples ### List all commit-scopes ```shell 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