Hi Paolo, I was trying to help, but I am running out of ideas. We use pg services without any issues in our mixed Windows/Linux environments.
Two more ideas: 1. Try if you can connect in the OSGEO4W shell with your service definition. Make sure that the shell sees your environment variable. You can connect in the OSGEO shell with: psql "service=servicename" If that fails, then it is a general problem in your OS or libpq, and not the fault of QGIS. 2. Try to put the pg_service.conf file inside the Windows file system, not through network shares from Linux Other than that - no idea what could be wrong. Andreas On 2016-09-09 08:25, Paolo Cavallini wrote: > Il 09/09/2016 07:59, Paolo Cavallini ha scritto: > >> Hi all, >> I'm trying to make PostgreSQL services work on Windows: >> >> * I have a valid pg_services.conf, that works on Linux > > sorry, the name of the file is correct: pg_service.conf > >> * I have double checked, and it has UNIX EOL >> * I have set up both PGSYSCONFDIR and PGSERVICEFILE in various tests in >> Global options --> System --> User specific environment variables >> >> but I always get: >> definition of service "test" not found >> (QGIS 2.14.2 on Windows 7). >> Thanks for any suggestion.
_______________________________________________ Qgis-developer mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
