3.7 Installing PostgreSQL 7

The directory context for PostgreSQL scripts is install-dir\DirXMLUtilities\jdbc\sql\postgres\install. The directory context for executing Postgres commands is postgres-install-dir/pgsql/bin.

  1. Create the database idm.

    For example, from the UNIX command line, execute the following command:

    ./createdb idm

  2. Install the plpgsql procedural language to database idm.

    For example, from the UNIX command line, execute the following command:

    ./createlang plpgsql idm

  3. From a Postgres client such as psql, log on as user postgres to the idm database.

    For example, from the UNIX command line, execute the following command:

    ./psql -d idm postgres

    By default, the Postgres user has no password.

  4. From inside psql, execute the script 1_install_7.sql. For example:

    idm=# \i 1_install_7.sql

  5. Update the pg_hba.conf file.

    For example, add entries for the idm database user. Adjust the IP-ADDRESS and IP-MASK as necessary:

    # TYPE  DATABASE    USER   IP-ADDRESS        IP-MASK           METHOD# allow driver user idm to connect to database idm
    host    idm         idm    255.255.255.255   255.255.255.0     password
    
  6. Restart the Postgres server to effect changes made to the pg_hba.conf file.