logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pg_renamecluster - rename a PostgreSQL cluster

Author

       Christoph Berg <myon@debian.org>

Debian                                             2025-02-20                                PG_RENAMECLUSTER(1)

Description

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.

Name

       pg_renamecluster - rename a PostgreSQL cluster

Options

       None.

See Also

pg_createcluster(8), pg_dropcluster(8), pg_lsclusters(1), pg_wrapper(1)

Synopsis

pg_renameclusterversionoldnamenewname

See Also