> pg_service is only used when connecting. It has nothing to do with
> losing connections. Or did I misunderstood something in you mail?
>
When I was having problems with connections dropping out I was advised
to use a pg_service because it sets up keepalives and such like this
keepalives=1
keepalives_idle=10
keepalives_interval=10
This did seem to help when I told pgadmin to use the service it didn't
drop the connections anymore.