Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlWE0-00050Q-69 for pgsql-jdbc@arkaria.postgresql.org; Mon, 02 May 2022 13:36:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nlWDy-0002v1-Ua for pgsql-jdbc@arkaria.postgresql.org; Mon, 02 May 2022 13:36:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlWDy-0002us-LZ for pgsql-jdbc@lists.postgresql.org; Mon, 02 May 2022 13:36:26 +0000 Received: from out-22.smtp.github.com ([192.30.252.205] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlWDu-0007TZ-7e for pgsql-jdbc@lists.postgresql.org; Mon, 02 May 2022 13:36:26 +0000 Received: from github.com (hubbernetes-node-9d98440.ac4-iad.github.net [10.52.208.81]) by smtp.github.com (Postfix) with ESMTPA id 19B96722086 for ; Mon, 2 May 2022 06:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1651498580; bh=sY3m683yKdI+xNT1XutRbPx5hJHu+Bis+55+8Ha3WFI=; h=Date:From:To:Subject:From; b=LqiHVFwbfCQPOAIRf1CLaHwdqPTSZuHMXYcgdJ0Ox7KTSrYmRy26LvgYt3j3n4tQR DsJeNOGGiClTwer1QCT1+DtMv25fSg6RWZKchZg/L8pWWZfP68O3jFUdArazoMtF4u 1MXFNgE7OBykiKOd6/t5CyNtarVdu2/jmHFTFPzk= Date: Mon, 02 May 2022 06:36:20 -0700 From: Dmitriy Mukhin To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 8444ed: feat: targetServerType=preferPrimary connection pa... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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