Use this parameter to specify the directory you wish to install an an alternate database storage area into.
The initlocation program creates the directories needed for a secondary database storage area. For more ijnformation on how to manage and use a secondary data storage area, refer to CREATE DATABASE.
To use this command, you must be logged in as the database superuser.
This example demonstrates how to initialize a secondary database storage area in the /usr/local/pgsql/booktown2 directory.
$ initlocation /usr/local/pgsql/booktown2 $ createdb -D '/usr/local/pgsql/booktown2/testdb' testdb