initlocation

Name

initlocation  --  Create a secondary PostgreSQL database storage area

Synopsis

initlocation directory
  

Parameters

directory

Use this parameter to specify the directory you wish to install an an alternate database storage area into.

Results

If successful, initlocation creates the dirctories necessary for an alternate database storage area.

Description

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.

NoteNote
 

To use this command, you must be logged in as the database superuser.

Examples

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