From: Niels Jespersen <NJN@dst.dk>
To: Laurenz Albe <laurenz.albe@cybertec.at>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: SV: SV: pg_service.conf and client support
Date: Mon, 15 Jun 2020 15:04:03 +0000
Message-ID: <ad229f2f1ac2493c9783b6df4f1a9aae@dst.dk> (raw)
In-Reply-To: <48a3ee7c84db3a2855c09a6616668d89a878463d.camel@cybertec.at>
References: <c5b02f3be97c48159508bf5e85b3f11a@dst.dk>
<fed1dc21ad7fbf917fe1df5fadd1f371b6063286.camel@cybertec.at>
<af544aa97f5e4ba380a4a9af5efe103f@dst.dk>
<48a3ee7c84db3a2855c09a6616668d89a878463d.camel@cybertec.at>
Fra: Laurenz Albe <laurenz.albe@cybertec.at>
Sendt: 15. juni 2020 15:36
Til: Niels Jespersen <NJN@dst.dk>; pgsql-general@postgresql.org
Emne: Re: SV: pg_service.conf and client support
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
That is the way to do it. It works. Connectionstring
'Driver={PostgreSQL Unicode(x64)}'
And environment variables
PGSERVICEFILE and PGSERVICE
Will connect you. Thank you for helping with this.
Regards Niels
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: NJN@dst.dk, laurenz.albe@cybertec.at
Subject: Re: pg_service.conf and client support
In-Reply-To: <ad229f2f1ac2493c9783b6df4f1a9aae@dst.dk>
References: <c5b02f3be97c48159508bf5e85b3f11a@dst.dk> <fed1dc21ad7fbf917fe1df5fadd1f371b6063286.camel@cybertec.at> <af544aa97f5e4ba380a4a9af5efe103f@dst.dk> <48a3ee7c84db3a2855c09a6616668d89a878463d.camel@cybertec.at> <ad229f2f1ac2493c9783b6df4f1a9aae@dst.dk>
* 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