[GRASS-dev] Using db.copy over proxy?

Hi,

we are using GRASS GIS on a cloud VM in an intranet and have to
connect to an external PostgreSQL database through a proxy.

While the "psql" command works, db.copy complains about:

DBMI-PostgreSQL driver error:
Connection failed.
could not connect to server: No such file or directory
       Is the server running locally and accepting
       connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

What is the trick here?

thanks
Markus