From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Ron <ronljohnsonjr(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Question: Multiple pg clusters on one server can be reached with the standard port. |
Date: | 2023-06-16 15:19:51 |
Message-ID: | b6044b08ec7df320dc1571708be4e94df445c8d8.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 2023-06-16 at 09:04 -0500, Ron wrote:
> On 6/16/23 07:50, Laurenz Albe wrote:
> > On Fri, 2023-06-16 at 12:35 +0000, Brainmue wrote:
> > > We want to minimise dependencies between the application and the associated PostgreSQL DB.
> > > The idea is that the application gets its DB alias and this is then used as a connection string.
> > > This way we can decide in the backend on which server the PostgreSQL DB is running.
> > There is an existing solution for that: the libpq connection service file:
> > https://www.postgresql.org/docs/current/libpq-pgservice.html
>
> Do JDBC and ODBC recognize .pg_service.conf? I know they don't recognize
> .pgpass.
JDBC doesn't, because it does not use libpq.
ODBC can use both .pgpass and .pg_service.conf, since it uses libpq.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2023-06-16 15:20:42 | Re: Question: Multiple pg clusters on one server can be reached with the standard port. |
Previous Message | Laurenz Albe | 2023-06-16 15:18:01 | Re: Question: Multiple pg clusters on one server can be reached with the standard port. |