
Built-in HQ database build instructions
---------------------------------------

Linux, Solaris, Darwin:
-----------------------
1. Download postgres sources into pgsql-bin.
2. Modify pgbuild.sh to point to the correct version
3. Run ./pgbuild.sh
4. Check in <platform-name>/pgsql.tar.gz

Windows:
--------
Required Software: MinGW
                   MSYS-1.0.10

1. Apply no-admin-win32.patch from win32/patches to allow for Administrators
   to run the database.
2. ./configure --prefix=/home/<user>/pgsql --without-zlib --without-readline
3. make && make install
4. cd /home/<user>/pgsql
5. copy lib/libpq.dll to bin to avoid needing to set PATH
6. ./bin/initdb.exe -D data
7. ./bin/pg_ctl.exe start -o -i -D data
8. ./bin/createdb.exe hqdb
9. ./bin/createuser.exe -s hqadmin
10. ./bin/pg_ctl.exe stop -o -i -D data
11. rm -rf doc include man
12. rm data/*.conf data/*.opts
13. cd /home/<user>
14. zip -r pgsql.zip pgsql

Check this into pgsql-bin/win32/pgsql.zip
