Chapter 16. Installation from Source Code on Windows

Table of Contents
16.1. Building with Visual C++ 2005
16.1.1. Requirements
16.1.2. Building
16.1.3. Cleaning and installing
16.1.4. Running the regression tests
16.1.5. Building the documentation
16.2. Building libpq with Visual C++ or Borland C++

It is recommended that most users download the binary distribution for Windows, available as a Windows Installer package from the PostgreSQL website. Building from source is only intended for people developing PostgreSQL or extensions.

There are several different ways of building PostgreSQL on Windows. The complete system can be built using MinGW or Visual C++ 2005. It can also be built for older versions of Windows using Cygwin. Finally, the client access library (libpq) can be built using Visual C++ 7.1 or Borland C++ for compatibility with statically linked applications built using these tools.

Building using MinGW or Cygwin uses the normal build system, see Chapter 15 and the specific notes in Section 15.8.5 and Section 15.8.2. Cygwin is not recommended and should only be used for older versions of Windows where the native build does not work, such as Windows 98.