[pgjdbc/pgjdbc] 8444ed: feat: targetServerType=preferPrimary connection pa...
[pgjdbc/pgjdbc] 8444ed: feat: targetServerType=preferPrimary connection pa...
От:
Dmitriy Mukhin <noreply@github.com>
Дата:
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 8444ed6a8594521f4c7e263867dfe69002cb304a
https://github.com/pgjdbc/pgjdbc/commit/8444ed6a8594521f4c7e263867dfe69002cb304a
Author: Dmitriy Mukhin
Date: 2022-05-02 (Mon, 02 May 2022)
Changed paths:
M README.md
M docs/documentation/head/connect.md
M pgjdbc/src/main/java/org/postgresql/PGProperty.java
M pgjdbc/src/main/java/org/postgresql/hostchooser/HostRequirement.java
M pgjdbc/src/main/java/org/postgresql/hostchooser/MultiHostChooser.java
M pgjdbc/src/test/java/org/postgresql/test/hostchooser/MultiHostsConnectionTest.java
Log Message:
-----------
feat: targetServerType=preferPrimary connection parameter (#2483)
* preferPrimary: documentation, code/logic, tests
* preferPrimary: fixed code style
* preferPrimary: new tests are in alphabetical order
* preferPrimary: simplify MultiHostChooser.candidateIterator(), fix the optimization in there