Compiling and Installation

A detailed description of compiling and installation, with all included options, is outside the scope of this book. However, the two most popular forms of installation will be covered: source-based and packaged installs.

Source-Based Installation

The source files can be retrieved from the PostgreSQL FTP site (ftp.postgresql.org) or from numerous mirror sites around the world.

Once the file is downloaded, it will probably be in a tarred-gzipped format. In order to compile, it first must be unpacked. Move the file to a clean directory (for example, /usr/src/postgres) and issue the following commands:

>tar xzf postgresql-7.1.tar.gz 

After the code is unpacked, you can delete the original tar.gz file if disk space is ...

Get PostgreSQL Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.