Type: string
Context: postmaster
Restart: true

Specifies the directory to use for data storage. This parameter can only be set at server start.


Supports the ability to distribute files according to sysadmin or operating system defined schemes, or for launching multiple restart instances using the same binaries. Most of the time, it's better to use configuration options to define these locations so that all PostgreSQL binaries default to the correct paths.