Return to PostgreSQL or PostgreSQL CLI commands
initdb initializes a PostgreSQL database cluster.
initdb [OPTION]… [DATADIR]
--auth-host=METHOD default authentication method for local TCP/IP connections
--auth-local=METHOD default authentication method for local-socket connections --locale=LOCALE set default locale for new databases
--lc-collate=, --lc-ctype=, --lc-messages=LOCALE
--lc-monetary=, --lc-numeric=, --lc-time=LOCALE
set default locale in the respective category for
new databases (default taken from environment)
--no-locale equivalent to --locale=C
--pwfile=FILE read password for the new superuser from filedefault text search configuration
--wal-segsize=SIZE size of WAL segments, in megabytes
If the data directory is not specified, the environment variable PGDATA is used.
Report bugs to pgsql-bugs@lists.postgresql.org.