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 1jkpH1-0004TI-Ot for pgsql-general@arkaria.postgresql.org; Mon, 15 Jun 2020 13:35:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jkpH0-0004Su-Ke for pgsql-general@arkaria.postgresql.org; Mon, 15 Jun 2020 13:35:38 +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 1jkpH0-0004Sn-D1 for pgsql-general@lists.postgresql.org; Mon, 15 Jun 2020 13:35:38 +0000 Received: from mail-ej1-x643.google.com ([2a00:1450:4864:20::643]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jkpGy-0002ay-7M for pgsql-general@postgresql.org; Mon, 15 Jun 2020 13:35:37 +0000 Received: by mail-ej1-x643.google.com with SMTP id dr13so17445578ejc.3 for ; Mon, 15 Jun 2020 06:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=IgG/wCuXwwf0uD3Ic1iTGevLDMdrkOyOv+GaQQ4vzyg=; b=zznZsuasoLW0JGxOMIvxdfwbweqBYEf8gj15T/Btt8iyvfP5qKGG+RlWQbggZZCQnh dXbRxfdG4nME8LcBwzuT6W94uOL2U7nlfSQ3dE16HBiQkyF4QRadkUSEWp/R/1cQuQDg OKtVKQQfmB1zIHUIvQAGNgCAZJCCZ13wQ70BiFpo94L9T/NusSyTpszCCcB9BAEfui5S BDDj9HHTF9HT3UdSZLOeomPt48hpewtfBKDqW1DnJLhvqSwMeuz4HG5Ee+uabx4+qicA 9JGVfhipe4+mPqTZRUyqFrkYShgmK/4cRGPrLVCcXfx5xwNGdmTAaKPp9uzhNCvdlaId pEeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=IgG/wCuXwwf0uD3Ic1iTGevLDMdrkOyOv+GaQQ4vzyg=; b=SLhMtFjf+o0xB5JTsAK7uc6rrAUwZAU9pjxaz7RmfJXfrlG7vLwScfJ6a13twjuCfr 3TLuo+hwRLYoDv7jIlW8TiV244ODo9v6Dz1iWkEuO0i5+COz3MP4qwlkBKskduQra3Bw UGOXPQyj33cA7mHaoEl4drXNHZhjMDxaWUY0VlggxwIx/FcFdGAhEEecCfMhLAT2NEYX 5Ul4P3oZ6TgxYp8I+KNulkhyyNNhSr6gtwJ1IiGlS1BE9JRpLokbXX9shCMhQLY1IWSi E0/lzFi7dwHwDhghEpRZe5QRRviyWXyOh5SBzoL4gE9/ZzRS7ENmcYP0DyLgf8B0KTnE RKmw== X-Gm-Message-State: AOAM532OxMLeKziboiAQ086dJUU9dxLRtZELmDQgizDjYalrhc7ojxGw kDJBJq9sdHyvpd7kOz1vGukAduMHEsI= X-Google-Smtp-Source: ABdhPJz6WWD+UtLDZC9umpLOkYMrNpF0Ke3jlCCytF3SLyoZt4d2rB7g6LtJiyXafePZ5aDWVTwbhg== X-Received: by 2002:a17:906:af62:: with SMTP id os2mr25335632ejb.345.1592228134883; Mon, 15 Jun 2020 06:35:34 -0700 (PDT) Received: from localhost.localdomain (217-149-168-120.nat.highway.telekom.at. [217.149.168.120]) by smtp.gmail.com with ESMTPSA id f5sm906321edv.36.2020.06.15.06.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 06:35:34 -0700 (PDT) Message-ID: <48a3ee7c84db3a2855c09a6616668d89a878463d.camel@cybertec.at> Subject: Re: SV: pg_service.conf and client support From: Laurenz Albe To: Niels Jespersen , "pgsql-general@postgresql.org" Date: Mon, 15 Jun 2020 15:35:33 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 2020-06-15 at 11:58 +0000, Niels Jespersen wrote: > > For your examples that means: > > - The PostgreSQL ODBC server can use pg_service.conf > > - NpgSQL cannot use the file. > > You mention that the PostgreSQL ODBC driver can use pg_service.conf. But I cannot > find any examples om how to construct a connectionstring that PostgreSQL ODBC will accept? After looking at the code, I am no longer sure. There doesn't seem to be a way to specify a general connection string. You could try setting the environment variable PGSERVICE to specify the service. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com