Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TP1Fm-00021H-LM for pgsql-jdbc@postgresql.org; Fri, 19 Oct 2012 01:19:58 +0000 Received: from mail63.csoft.net ([205.205.214.4]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TP1Ff-0003UO-3p for pgsql-jdbc@postgresql.org; Fri, 19 Oct 2012 01:19:58 +0000 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 533F228401; Thu, 18 Oct 2012 21:19:48 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 079C0A320; Thu, 18 Oct 2012 21:19:47 -0400 (EDT) Date: Thu, 18 Oct 2012 21:19:47 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Mikko Tiihonen cc: Craig Ringer , =?ISO-8859-15?Q?S=E9rgio_Saquetim?= , "pgsql-jdbc@postgresql.org" , Rafael dos Santos Silva Subject: Re: Severe performance degradation when using the 9.2-1000 JDBC 4 driver In-Reply-To: <51061EFB789B4A45AC6598C83649B7BE8DB56604@NBL-EXCD1-01.nebula.local> Message-ID: References: , <507FC5EA.6070905@ringerc.id.au> <51061EFB789B4A45AC6598C83649B7BE8DB56604@NBL-EXCD1-01.nebula.local> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201210/86 X-Sequence-Number: 23410 On Thu, 18 Oct 2012, Mikko Tiihonen wrote: > I think the DNS lookup is part of the JDBC failover connection patch > that I created. I initially used a InetSocketAddress.getHostString() > that does not do any DNS lookups, but since that method was added in > Java7 I had to revert to getHostName() method which does. > Is there any functionality that we need that is provided by using InetSocketAddress or is it just a convenient object to pass around host and port together? The simplest option to me seems to be reverting to passing simple strings/ints around (possibly in some kind of our own container). Kris Jurka