pgd node stop v6.5.0

Synopsis

The pgd node stop command stops the Postgres instance on a node, using pg_ctl directly. It doesn't require systemd or another service manager to be configured on the node.

Users and roles

Runs pg_ctl stop as an OS-level operation and doesn't check any PGD or Postgres role. Run the command as the OS user that owns the node's data directory. See User roles.

Syntax

pgd node <NODE_NAME> stop [OPTIONS]

Where <NODE_NAME> is the name of the node to stop.

Options

ShortLongDescription
-D--pgdata <PG_DATA>The data directory of the node. Required. Also set with the PGDATA environment variable.
--bindir <BINDIR>Path to the Postgres bin directory. Defaults to the directory where pgd resides.
--dbname <DBNAME>Database to connect to for node-name verification. Defaults to pgddb for PGD nodes, edb for EPAS, or postgres otherwise.
-m--mode <MODE>Shutdown mode: smart, fast, or immediate (or the first letter of one of these). If omitted, pg_ctl's default (fast) is used.
-W--no-waitDon't wait until the operation completes.
-t--timeout <SECS>Seconds to wait when not using -W. Defaults to 60. Also set with the PGCTLTIMEOUT environment variable.
-s--silentOnly print errors, no informational messages. Can't be used with --verbose.
--verboseVerbose output. Can't be used with --silent.

See also Global Options.

Examples

Stop the Postgres instance on a node

pgd node kaboom stop --pgdata /var/lib/edb-pge/17/main

Stop a node immediately

pgd node kaboom stop --pgdata /var/lib/edb-pge/17/main --mode immediate