postgresql-setup (1) - Linux Manuals

postgresql-setup: manual page for postgresql-setup 9.2.18


postgresql-setup - manual page for postgresql-setup 9.2.18


postgresql-setup {initdb|upgrade} [SERVICE_NAME]


Script is aimed to help sysadmin with basic database cluster administration.

The SERVICE_NAME is used for selection of proper unit configuration file; For more info and howto/when use this script please look at the docu file /usr/share/doc/postgresql-9.2.18/README.rpm-dist. The 'postgresql' string is used when no SERVICE_NAME is explicitly passed.

Available operation mode:

Create a new PostgreSQL database cluster. This is usually the first action you perform after PostgreSQL server installation.
Upgrade PostgreSQL database cluster to be usable with new server. Use this if you upgraded your PostgreSQL server to newer major version (currently from 8.4 to 9.2).


Options carried by this variable are passed to subsequent call of `initdb` binary (see man initdb(1)). This variable is used also during 'upgrade' mode because the new cluster is actually re-initialized from the old one.
Options in this variable are passed next to the subsequent call of `pg_upgrade`. For more info about possible options please look at man pg_upgrade(1).
Set to '1' if you want to see debugging output.