pgo restart

pgo restart

Restarts the PostgrSQL database within a PostgreSQL cluster

Synopsis

Restarts one or more PostgreSQL databases within a PostgreSQL cluster.

For example, to restart the primary and all replicas:
pgo restart mycluster

Or target a specific instance within the cluster:
pgo restart mycluster --target=mycluster-abcd

And use the 'query' flag obtain a list of all instances within the cluster:
pgo restart mycluster --query
pgo restart [flags]

Options

  -h, --help                 help for restart
      --no-prompt            No command line confirmation.
  -o, --output string        The output format. Supported types are: "json"
      --query                Prints the list of instances that can be restarted.
      --target stringArray   The instance that will be restarted.

Options inherited from parent commands

      --apiserver-url string     The URL for the PostgreSQL Operator apiserver that will process the request from the pgo client.
      --debug                    Enable additional output for debugging.
      --disable-tls              Disable TLS authentication to the Postgres Operator.
      --exclude-os-trust         Exclude CA certs from OS default trust store
  -n, --namespace string         The namespace to use for pgo requests.
      --pgo-ca-cert string       The CA Certificate file path for authenticating to the PostgreSQL Operator apiserver.
      --pgo-client-cert string   The Client Certificate file path for authenticating to the PostgreSQL Operator apiserver.
      --pgo-client-key string    The Client Key file path for authenticating to the PostgreSQL Operator apiserver.

SEE ALSO

  • pgo - The pgo command line interface.
Auto generated by spf13/cobra on 1-Oct-2020