Message-ID: From: "Squiry (@Squiry)" To: "pgjdbc/pgjdbc" Date: Mon, 27 Nov 2023 14:02:02 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3012: Support multiple hosts defined with single hostname In-Reply-To: References: List-Id: X-GitHub-Author-Login: Squiry X-GitHub-Comment-Id: 1406208109 X-GitHub-Comment-Type: review_comment X-GitHub-Commit: d425ed9c11bf075106ef47a65e56761b871c1be6 X-GitHub-Issue: 3012 X-GitHub-Line: 45 X-GitHub-Path: pgjdbc/src/main/java/org/postgresql/hostchooser/HostChooserFactory.java X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: review_comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3012#discussion_r1406208109 Content-Type: text/plain; charset=utf-8 (on pgjdbc/src/main/java/org/postgresql/hostchooser/HostChooserFactory.java:45) Libpq shuffles provided hosts [here](https://github.com/postgres/postgres/blob/master/src/interfaces/libpq/fe-connect.c#L1712) and than shuffles resolved address of each host [here](https://github.com/postgres/postgres/blob/master/src/interfaces/libpq/fe-connect.c#L2617). Looks more like a 1:1 case. This will require a little bit more changes on pgjdbc side.