as the error message says : usage : pgfuncs ip port username password database currently plain and md5 passwords are supported (not on the command line, just type it in plain) I tried having a go at using factotum but I didn't get it to work so far.