See also nsdbipg for a newer option.
$ hg clone https://bitbucket.org/naviserver/nsdbpg/
The nsdbpg driver was based on the AOLserver nspostgres driver. The code has been cleaned up and adapted to some of the newer NaviServer APIs, some older AOLserver 2.0 era code was removed, and a couple of features were added, such as support for returning the number of rows affected after a DML statement.
Here's Ohloh's comparison of the codebases of nspostgres (red), nsdbpg (green) and nsdbipg (blue):
And here's Ohloh's comparison of commit activity :