pg_renamecluster(1)

pg_renamecluster1

Rename a postgresql cluster

Usage

pg_renamecluster version oldname newname

Overview

pg_renamecluster changes the name of a PostgreSQL cluster, i. e. the name of the config directory in /etc/postgresql/version/ along with the data directory in /var/lib/postgresql/version/. Existing log files in /var/log/postgresql/ are also renamed. The cluster is stopped and started for the operation.

The following postgresql.conf config options are updated to refer to the changed path names: data_directory, hba_file, ident_file, external_pid_file, stats_temp_directory, cluster_name.

Options

None.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Christoph Berg <[email protected]>

From postgresql-common 278 in Debian 13 (Trixie). Parsed by carta from the page's man source.