Postgresql 7.3.3 Installation Instructions


This is a help file for installing and running PostgreSQL 7.3.3. PostgreSQL has been installed on a Sun Ultra 60 machine running Solaris 8 (SunOS 5.8).
In case you need more detailed instructions see online PostgreSQL documentation.

Contents

Requirements

  1. GNU make, other make programs will not work.
  2. 35 MB of disk space for the compilation and the installation. Extra disk space is necessary to create databases.

Download PostgreSQL

  1. Download PostgreSQL 7.3.3

  2. Unzip and untar the package
          gtar -zxvf postgresql-7.3.3.tar.gz
    This will create the directory postgresql-7.3.3.


Installation PostgreSQL

  1. Install Ant.
    Ant is neccessary in order the JDBC driver to be built.
  2. Change into the directory postgresql-7.3.3
  3. Configure the source tree for your system and choose the options you would like.
    Set the option --prefix to the directory where postgreSQL should be installed (e.g., /usr/local/pgsql). This directory will be known as PostgeSQL_Install_Dir
    Set the option --pgport to the port where postgres server will run
    Enable the option --with-java so that the postgreSQL JBDC driver will be built.
    ./configure --prefix=PostgeSQL_Install_Dir --with-pgport=8080 --with-java
  4. Build
    gmake
  5. Install the files.
    gmake install
    gmake install-all-headers
  6. Add the following commands in your login environment:
    setenv PATH PostgeSQL_Install_Dir/bin:$PATH
    setenv LD_LIBRARY_PATH PostgeSQL_Install_Dir/lib:$LD_LIBRARY_PATH
    setenv MANPATH PostgeSQL_Install_Dir/man:$MANPATH
    setenv PGLIB PostgeSQL_Install_Dir/lib
  7. Define the directory where the data will be stored (e.g., /usr/local/pgsql/data). This directory can be found at any location as long as you have the permission. This directory will be known as PostgeSQL_Data_Dir
    mkdir PostgeSQL_Data_Dir
    PostgeSQL_Install_Dir/bin/initdb -E unicode -D PostgeSQL_Data_Dir
    Note: Option -E defines the default encoding of a database. In this case the default encoding is set to unicode. For more information about multibyte support click here.
    setenv PGDATA PostgeSQL_Data_Dir
  8. Start the database server
    PostgeSQL_Install_Dir/bin/postmaster -i -D PostgeSQL_Data_Dir
    Note:When running the postmaster always use the option -i in order to enable TCP connections because RSSDB connects to postgresql through TCP/IP.
    Note: The commands initdb -D PostgeSQL_Data_Dir and postmaster -i -D PostgeSQL_Data_Dir should be executed from the same user account which will be known as
    PostgreSQL root account.

Create a PostgreSQL db and user

You can perform the following commands either if you have logged in Postgresql root account or if you have been granted the permissions by the Postgresql root account to create databases and create users respectively.

Authentication/Access

In order to define which clients are allowed to access a database and how the users on those clients must authenticate themselves you should configure the file pg_hba.conf found in the directory PostgeSQL_Data_Dir. Note that RSSDB connects to postgresql through TCP connection.


Last modified: July 23, 2003