Re: Question: Multiple pg clusters on one server can be reached with the standard port.

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Brainmue <brainmue(at)weiller(dot)eu>
Cc: 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 12:50:40
Message-ID: 4d70ad6a5a73b9e9faaf8f2715cac862c86def3c.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

If you want to manage the connection strings centrally, you can use LDAP lookup:
https://www.postgresql.org/docs/current/libpq-ldap.html

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2023-06-16 13:24:54 Re: Using vars in jsonbpath operator ?
Previous Message Brainmue 2023-06-16 12:35:04 Re: Question: Multiple pg clusters on one server can be reached with the standard port.