pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Question: Multiple pg clusters on one server can be reached with the standard port.
Date: Fri, 16 Jun 2023 10:34:24 -0500
Message-ID: <affaaa6c-98fb-0bd3-8eb7-b56907075014@gmail.com> (raw)
In-Reply-To: <b6044b08ec7df320dc1571708be4e94df445c8d8.camel@cybertec.at>
References: <6ba275cd2d442a913a234564aeaec27311ec1d16.camel@cybertec.at>
	<71943c04e05c3c13d5cd2b287909f351@weiller.eu>
	<a846bc8650c4e4299a7c9324f057b857@weiller.eu>
	<4d70ad6a5a73b9e9faaf8f2715cac862c86def3c.camel@cybertec.at>
	<aa552f08-3716-a02b-076d-84739b0e6eb9@gmail.com>
	<b6044b08ec7df320dc1571708be4e94df445c8d8.camel@cybertec.at>

On 6/16/23 10:19, Laurenz Albe wrote:
> 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.

All of the applications that we use are written in Java, so that wouldn't work.

-- 
Born in Arizona, moved to Babylonia.





view thread (37+ messages)  latest in thread

Message-ID: <affaaa6c-98fb-0bd3-8eb7-b56907075014@gmail.com>
Permalink:  ../affaaa6c-98fb-0bd3-8eb7-b56907075014@gmail.com/
Also on:    postgresql.org/message-id/affaaa6c-98fb-0bd3-8eb7-b56907075014@gmail.com

 · 

reply

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: ronljohnsonjr@gmail.com
  Subject: Re: Question: Multiple pg clusters on one server can be reached with the standard port.
  In-Reply-To: <affaaa6c-98fb-0bd3-8eb7-b56907075014@gmail.com>
  References: <6ba275cd2d442a913a234564aeaec27311ec1d16.camel@cybertec.at> <71943c04e05c3c13d5cd2b287909f351@weiller.eu> <a846bc8650c4e4299a7c9324f057b857@weiller.eu> <4d70ad6a5a73b9e9faaf8f2715cac862c86def3c.camel@cybertec.at> <aa552f08-3716-a02b-076d-84739b0e6eb9@gmail.com> <b6044b08ec7df320dc1571708be4e94df445c8d8.camel@cybertec.at> <affaaa6c-98fb-0bd3-8eb7-b56907075014@gmail.com>

* 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