Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jkKnw-0001Hk-9r for pgsql-general@arkaria.postgresql.org; Sun, 14 Jun 2020 05:03:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jkKns-0007Cs-J3 for pgsql-general@arkaria.postgresql.org; Sun, 14 Jun 2020 05:03:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jkKns-000798-3b for pgsql-general@lists.postgresql.org; Sun, 14 Jun 2020 05:03:32 +0000 Received: from srvimsva2.dst.dk ([91.208.143.64]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jkKnk-0001Sq-Jf for pgsql-general@postgresql.org; Sun, 14 Jun 2020 05:03:30 +0000 Received: from srvimsva2.dst.dk (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C5E66104066 for ; Sun, 14 Jun 2020 07:03:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dst.dk; s=dmz20180119; t=1592111000; bh=qOJxaRRV5gUFIaT1JdynJV5GyfFkOrRu8ELMNB2PE7M=; h=From:To:Date; b=VrkJLe0aaWD09CaYDqF6keoR7kW/o2z/vSFIFxS21ii78Bgjv7J9m211kA1cRiQgF dxxSfOWeXX811zGEyyRolY6kNixN14hmEEW/fYrMrnw21kShWsle6ztNrlha6+Q26M 1OWHDembjvJ6duXSKSpODXN06Kmv1TSFtdwJ/iis= Received: from srvimsva2.dst.dk (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 82CAB104061 for ; Sun, 14 Jun 2020 07:03:08 +0200 (CEST) X-IMSS-DMARC-Authentication-Results: spf=fail (sender IP address:192.168.64.11) smtp.mailfrom=dst.dk; dkim=fail(no signature) header.d=none; dmarc=fail policy=none action=none header.from=dst.dk Received: from Sepo.dst.dk (unknown [192.168.64.11]) by srvimsva2.dst.dk (Postfix) with ESMTP for ; Sun, 14 Jun 2020 07:03:08 +0200 (CEST) Received: from srvexc9.dst.local ([172.30.32.49]) by Sepo.dst.dk (JAMES SMTP Server 2.3.2-1) with SMTP ID 447 for ; Sun, 14 Jun 2020 07:03:06 +0200 (CEST) Received: from srvexc8.dst.local (172.30.32.48) by srvexc9.dst.local (172.30.32.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Sun, 14 Jun 2020 07:03:06 +0200 Received: from srvexc8.dst.local ([fe80::9df8:5de5:1bf2:8b3b]) by srvexc8.dst.local ([fe80::9df8:5de5:1bf2:8b3b%4]) with mapi id 15.01.1847.009; Sun, 14 Jun 2020 07:03:06 +0200 From: Niels Jespersen To: "pgsql-general@postgresql.org" Subject: pg_service.conf and client support Thread-Topic: pg_service.conf and client support Thread-Index: AdZCB0WvYg1c8E9CQVaL7fsOHsR9Pw== Date: Sun, 14 Jun 2020 05:03:05 +0000 Message-ID: Accept-Language: da-DK, en-US Content-Language: da-DK X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.22.69.7] Content-Type: multipart/alternative; boundary="_000_c5b02f3be97c48159508bf5e85b3f11adstdk_" MIME-Version: 1.0 X-TM-AS-GCONF: 00 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_c5b02f3be97c48159508bf5e85b3f11adstdk_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello all I just found out about the pg service file. https://www.postgresql.org/docs= /current/libpq-pgservice.html I don't know why it took me so long finding this. I have been looking for w= ays to abstract physical details of data location away for clients (much li= ke Oracle's tnsnames). Want to move a cluster to a new host. Sure, move it, edit pg_service.conf a= nd clients will not know the difference. It works great for at least psql and psycopg2. But I cannot find anything on pg_service.conf and the Postgres ODBC driver = and Npgsql for .Net I know pg_service.conf support is implemented through libpq and support for= rivers not using libpq is not a given thing. But I think the need for the abstraction of connection details is a general= one. Can anyone shed som light on the ubiquitousness of support for pg_service.c= onf? Are there any other mechanisms with broader support, that can be used inste= ad of pg_service.conf (if support is scarce beyond what builds on libpq)? Thank you. Regards Niels Jespersen --_000_c5b02f3be97c48159508bf5e85b3f11adstdk_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello all

 

I just found out about the pg s= ervice file. https://www.postgresql.org/docs/current/libpq-pgservice.html<= /o:p>

 

I don’t know why it took = me so long finding this. I have been looking for ways to abstract physical = details of data location away for clients (much like Oracle’s tnsname= s).

 

Want to move a cluster to a new= host. Sure, move it, edit pg_service.conf and clients will not know the di= fference.

 

It works great for at least psq= l and psycopg2.

 

But I cannot find anything on p= g_service.conf and the Postgres ODBC driver and Npgsql for .Net

 

I know pg_service.conf support = is implemented through libpq and support for rivers not using libpq is not = a given thing.

 

But I think the need for the ab= straction of connection details is a general one.

 

Can anyone shed som light on th= e ubiquitousness of support for pg_service.conf?

 

Are there any other mechanisms = with broader support, that can be used instead of pg_service.conf (if suppo= rt is scarce beyond what builds on libpq)?

 

Thank you.

 

Regards Niels Jespersen

--_000_c5b02f3be97c48159508bf5e85b3f11adstdk_--