At line 57 of pgsql_pool.erl a call to pgsql_connection:database() is made.
There's no such function in the current pgsql_connection.erl: http://github.com/wg/epgsql/blob/master/src/pgsql_connection.erl
Indeed. Should be a quick change- I'll put it up once it's tested. Feel free to fix it and do a pull request.
Any ideas how to fix it?