From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Niels Jespersen <NJN@dst.dk>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: SV: pg_service.conf and client support
Date: Mon, 15 Jun 2020 15:35:33 +0200
Message-ID: <48a3ee7c84db3a2855c09a6616668d89a878463d.camel@cybertec.at> (raw)
In-Reply-To: <af544aa97f5e4ba380a4a9af5efe103f@dst.dk>
References: <c5b02f3be97c48159508bf5e85b3f11a@dst.dk>
<fed1dc21ad7fbf917fe1df5fadd1f371b6063286.camel@cybertec.at>
<af544aa97f5e4ba380a4a9af5efe103f@dst.dk>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, NJN@dst.dk
Subject: Re: pg_service.conf and client support
In-Reply-To: <48a3ee7c84db3a2855c09a6616668d89a878463d.camel@cybertec.at>
References: <c5b02f3be97c48159508bf5e85b3f11a@dst.dk> <fed1dc21ad7fbf917fe1df5fadd1f371b6063286.camel@cybertec.at> <af544aa97f5e4ba380a4a9af5efe103f@dst.dk> <48a3ee7c84db3a2855c09a6616668d89a878463d.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox