2001-12-05 21:23:40 +03:00
|
|
|
How to install PostgreSQL on Windows
|
|
|
|
====================================
|
2002-02-02 23:34:16 +03:00
|
|
|
$Date: 2002/02/02 20:34:16 $
|
2000-09-27 19:17:57 +04:00
|
|
|
|
2001-12-05 21:23:40 +03:00
|
|
|
1. Install the latest Cygwin package, available at http://cygwin.com/.
|
2001-01-23 01:54:07 +03:00
|
|
|
The Cygwin package provides a UNIX-like API on top of the Win32
|
2001-12-05 21:23:40 +03:00
|
|
|
API. Using older versions such as 1.0 or B20 might require extra
|
|
|
|
efforts.
|
|
|
|
|
|
|
|
A pre-built PostgreSQL is part of the standard Cygwin distribution
|
|
|
|
and is installed by Cygwin's setup.exe. You are encouraged to use
|
|
|
|
this version unless it does not meet your needs. Please read the
|
|
|
|
README file, /usr/doc/Cygwin/postgresql-${version}.README, where
|
2002-02-02 23:34:16 +03:00
|
|
|
"${version}" is the version (e.g., 7.2).
|
2001-12-05 21:23:40 +03:00
|
|
|
|
|
|
|
2. Install the latest cygipc package, available at
|
2001-10-25 20:20:51 +04:00
|
|
|
http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/cygipc/.
|
2001-01-23 01:54:07 +03:00
|
|
|
Do not use versions prior to 1.04, they will not work.
|
|
|
|
|
2001-12-05 21:23:40 +03:00
|
|
|
Use the following command to install the cygipc package:
|
|
|
|
|
|
|
|
$ tar -C / -xjf cygipc-${version}.tar.bz2
|
|
|
|
|
|
|
|
where "${version}" is the version (e.g., 1.11-1).
|
|
|
|
|
2001-05-12 02:27:12 +04:00
|
|
|
3. The Cygwin bin directory has to be placed in the path before the
|
2001-01-23 01:54:07 +03:00
|
|
|
Windows program directories, because the sort.exe has to be taken
|
|
|
|
from Cygwin, not Windows.
|
|
|
|
|
2001-05-12 02:27:12 +04:00
|
|
|
4. Start ipc-daemon from the cygipc package. Use "net start ipc-daemon",
|
2001-04-03 22:14:39 +04:00
|
|
|
if ipc-daemon is installed as a service; otherwise, use "ipc-daemon &".
|
2001-01-23 01:54:07 +03:00
|
|
|
This program needs to be running anytime you start the PostgreSQL
|
2001-12-05 21:23:40 +03:00
|
|
|
server (postmaster) or initialize a database (initdb).
|
|
|
|
|
|
|
|
5. Proceed according to the INSTALL file (i.e., ./configure; make; etc.)
|
|
|
|
noting the following Cygwin specific differences:
|
|
|
|
|
|
|
|
o The GNU make command is called "make" not "gmake".
|
|
|
|
o The adduser command is not supported -- use the appropriate
|
|
|
|
user management application on Windows NT, 2000, or XP.
|
|
|
|
Otherwise, skip this step.
|
|
|
|
o The su command is not supported -- use ssh to simulate su
|
|
|
|
on Windows NT, 2000, or XP. Otherwise, skip this step.
|
2001-01-23 01:54:07 +03:00
|
|
|
|
2001-12-05 21:23:40 +03:00
|
|
|
Alternatively, proceed according to the README file supplied with
|
|
|
|
the Cygwin PostgreSQL package.
|
2001-01-23 01:54:07 +03:00
|
|
|
|
2001-04-03 22:14:39 +04:00
|
|
|
NOTE: The following are known issues with PostgreSQL on Windows:
|
2001-01-23 01:54:07 +03:00
|
|
|
|
2001-04-03 22:14:39 +04:00
|
|
|
1. Cygwin's AF_UNIX sockets are really implemented as AF_INET sockets
|
2001-01-23 01:54:07 +03:00
|
|
|
so they are inherently insecure.
|
|
|
|
|
2001-04-03 22:14:39 +04:00
|
|
|
2. make check can generate spurious regression test failures due to
|
2001-04-25 00:05:02 +04:00
|
|
|
overflowing the listen() backlog queue which causes connection
|
2001-04-03 22:14:39 +04:00
|
|
|
refused errors.
|
|
|
|
|
2001-10-25 20:20:51 +04:00
|
|
|
Problem reports can be sent to pgsql-cygwin@postgresql.org.
|