Chapter 1. Installation Instructions

Table of Contents
1.1. Short Version
1.2. Requirements
1.3. Getting The Source
1.4. If You Are Upgrading
1.5. Installation Procedure
1.6. Post-Installation Setup
1.6.1. Shared Libraries
1.6.2. Environment Variables
1.7. Supported Platforms

This chapter describes the installation of PostgreSQL from the source code distribution.

1.1. Short Version

./configure
gmake
su
gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test

The long version is the rest of this chapter.