Qore's pgsql module has been updated to version 1.0.6 and just released.
This release introduces native MS Windows port and various build fixes for UN*X operationg systems.
Module docs here: http://qore.org/manual/modules/pgsql-module-doc.html
install with macports: sudo port install qore-pgsql-module
A note for macports user: since 1.0.6, the port contains variants for Postgresql servers so it's possible to build it against chosen version. Example for 8.4: sudo port install qore-pgsql-module +psql84