WARNING

This text was automatically converted from troff me macros to HTML. Information may have been lost, added, or changed in the process. Lars Aronsson and Lysator do not guarantee the correctness of this HTML document.

NAME

initdb *- initalize the database templates and primary directories

SYNOPSIS

initdb [-v]

DESCRIPTION

initdb sets up the initial template databases. It is normally executed as part of the installation process. The template database is created under the directory specified by the the environment variable, POSTGRESHOME. For example,

setenv POSTGRESHOME /usr/postgres
POSTGRES also supports data striping by allowing a database spread across multiple directories. The user can specify multiple directories in POSTGRESHOME separated by ':'. For example,
setenv POSTGRESHOME /usr1/postgres:/usr2/postgres
The -v option specifies that initdb should be run in "verbose mode", meaning that it will print messages stating where the directories are being created, etc.

SEE ALSO

createdb(unix).