pkg_add postgresql 1)initdb -D c:\postgresql\8.4\data -U postgres -W3)host all all 0.0.0.0/0 md5local all postgres trust and restart postgrespsql -U postgres -d template1alter user postgres with encrypted password 'newpass';local all all trust and create new user instead.pg_ctl register [ -N servicename ] [ -U username ] [ -P password ] [ -D datadir ] [ -w ] [ -o options ] pg_ctl unregister [ -N servicename ] Couldn't install it with -U/P so had to do this and then change service properties and add description via registry (see below):
pg_ctl register -N Postgres-8.4 -D C:\PostgreSQL\8.4\datalocalhost:5432:*:postgres:XXXXXXXXXXX
pg_dumpall.exe -U postgres -h localhost -p 5432 -c -o | gzip > c:\backup\postgres_alldb.bak.gz xcopy /y c:\backup\postgres_alldb.bak.gz \\backup\db\hostname\postgres\
pg_dump.exe -i -h localhost -p 5432 -F t -b -v -f "c:\backup\dbname.backup" dbname gzip -f dbname.backup xcopy /y c:\backup\dbname.backup.gz \\backup\db\hostname\postgres\
« start