PostgreSQL binaries for Windows NT is available from :
If you want to re-compile the source tree then follow the instructions given below. Porting to NT is done using Cygnus cygwin32 package which has gcc, gmake for Win NT/95.
The authors of Windows NT port of PostgreSQL are -
After installing the Cygwin package, do the following to setup the working environment:
1. Install the Vi editor 'Vim'. See http://metalab.unc.edu/LDP/HOWTO/Vim-HOWTO.html
2. The default window of cygwin bash is black-background window with 24 lines. To set the background color and size of bash window, click on NT-Start->Control-panel->MS DOS console and change the background color to grey and size to 70 lines.
(OR) right click on Window titlebar and change property.
3. Edit cygnus.bat in c:\cygnus\cywinb20 and set the following -
set HOME=c:\cygnus\cygwinb20 bash --login
And also edit the /.bash_profile and put these lines
set -o vi PATH=$PATH:/usr/local/bin:/usr/bin export PATH
4. To enable the command-line history editing give -
bash$ set -o vi
Using the l,k,j,h you can use the vi commands to edit the command line history commands. You can repeat or modify previous commands, saves typing time.
5. You can do mount of drives/directories using this command -
bash$ umount / bash$ mount "c:\cygnus" / bash$ mount "c:\cygnus\cygwin-b20\postgres" /usr/local/pgsql
6. See online help with -
bash$ mount --help bash$ ls --help
You don't have /bin would you like to mount cygwin as /bin?" [ y/n ] Select 'n', and the other options are selected 'y'
cp /cygwin32_ipc-1.03/bin/* c:/usr/local/bin cp /cygwin32_ipc-1.03/include/sys/* c:/usr/local/include/sys cp /cygwin32_ipc-1.03/lib/* c:/usr/local/lib cp c:/usr/local/bin/* /bin cp c:/Unix/Root/cygwin-b20/H-i586-cygwin32/bin/* /bin
mount c:/usr/local/include /usr/local/include mount c:/usr/local/lib /usr/local/lib cp /local/lib/* /usr/local/lib
mkdir -p c:/Postgres/{Source,Binary} mkdir c:/Postgres/Binary/pgsql mkdir -p /usr/src/pgsql mkdir -p /usr/local/pgsql
mount -b c:/Postgres/Binary/pgsql /usr/local/pgsql mount c:/Postgres/Source/pgsql /usr/src/pgsql mount c:/Unix/Root/cygwin-b20/share /sw/cygwin-b20/share
cp un.h c:/Unix/Root/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/sys cp endian.h c:/Unix/Root/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include cp tcp.h c:/Unix/Root/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/netinet
PATH=$PATH:/usr/local/pgsql/bin:/usr/local/bin PGDATA=/usr/local/pgsql/data PGLIB=/usr/local/pgsql/lib LD_LIBRARY_PATH=/usr/local/pgsql/lib:/usr/local/lib export LD_LIBRARY_PATH PATH PGDATA PGLIB
host all 163.17.11.109 255.255.255.0 trust