Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he5lw-0007Gk-2p for pgsql-jdbc@arkaria.postgresql.org; Thu, 20 Jun 2019 22:43:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1he5lt-0000YL-Q2 for pgsql-jdbc@arkaria.postgresql.org; Thu, 20 Jun 2019 22:43:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he5lt-0000YE-Ik for pgsql-jdbc@lists.postgresql.org; Thu, 20 Jun 2019 22:43:09 +0000 Received: from ngcobalt01.manitu.net ([2a00:1828:1000:2101::2]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he5lq-00070K-GH for pgsql-jdbc@lists.postgresql.org; Thu, 20 Jun 2019 22:43:08 +0000 Received: from [192.168.10.10] (46.128.245.164.dynamic.cablesurf.de [46.128.245.164]) (Authenticated sender: teicher) by ngcobalt01.manitu.net (Postfix) with ESMTPSA id E1EC633E1F79 for ; Fri, 21 Jun 2019 00:43:04 +0200 (CEST) To: pgsql-jdbc@lists.postgresql.org From: Tom Eicher Subject: Failover URLs in Datasource Message-ID: <0cf6b9d0-ea17-48de-140f-eaf07edec465@teicher.net> Date: Fri, 21 Jun 2019 00:43:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, we have Bug #1039 which means that the cool feature of failover urls does not work using DataSources; and not for a big reason but only because the data source assumes a single port number instead of multiple. Since we use Wildfly with postgres in production I have a big interest in getting this to work, so I tried to discuss this in the github issue, sent a (trial) patch in the hope to progress things, then submitted PR #1457, but have gotten no response nonetheless, so now I post here in the hope to find a developer interested in fixing Datasources with failover urls. The point is, while I am a seasoned Java and EE developer, I have no experience whatsoever in the pgjdbc code base and can't tell if my approach or PR is a good solution, only part of a bigger thing or utterly naive. I would think the PR is complete except the coding convention stuff. (Actually, can not a regular developer with the correct settings in his IDE fix this in 1 second (CTRL-SHIFT-F or something) rather than me doing this tediously by hand? But anyway I'd do it if I got some encouraging feedback at all). Also I have no idea if the travis "openjdk7" fail means anything!? Please talk to me :-) at https://github.com/pgjdbc/pgjdbc/issues/1039 https://github.com/pgjdbc/pgjdbc/pull/1457 Thanks Tom.