ip.address:port:databasename
You must remember to start postmaster with the -i option and also specify the port number.
The driver currently ignores the "port" argument for "localhost" so give it a real IP address to chew on.