Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5AAA5B5DBE2 for ; Mon, 27 Jun 2011 19:20:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 80750-04 for ; Mon, 27 Jun 2011 22:20:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id 70BF6B5DBDF for ; Mon, 27 Jun 2011 19:20:09 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id A80D637; Mon, 27 Jun 2011 18:20:09 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nW0u4R-PR7Ba; Mon, 27 Jun 2011 18:20:09 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id E366327; Mon, 27 Jun 2011 18:20:08 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id EC294AEF0C; Tue, 28 Jun 2011 06:20:07 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uOeL8pkk9GBi; Tue, 28 Jun 2011 06:20:03 +0800 (WST) Received: from [10.1.1.5] (203-206-78-208.dyn.iinet.net.au [203.206.78.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id D4698AEF0B; Tue, 28 Jun 2011 06:20:02 +0800 (WST) Message-ID: <4E090211.8010502@postnewspapers.com.au> Date: Tue, 28 Jun 2011 06:20:01 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 MIME-Version: 1.0 To: Phil Clay CC: pgsql-jdbc@postgresql.org Subject: Re: Connecting over UNIX domain sockets References: <852104.71586.qm@web65506.mail.ac4.yahoo.com> In-Reply-To: <852104.71586.qm@web65506.mail.ac4.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/69 X-Sequence-Number: 21993 On 06/28/2011 03:02 AM, Phil Clay wrote: > However, contrary to mysql's jdbc driver, postgres' jdbc driver does not appear > to be designed in a way that a different Socket implementation could be easily > "plugged in". There's already support for pluggable SSLSocketFactories to wrap sockets. Adding pluggable SocketFactory support wouldn't seem to be overly hard, I just suspect it's a combination of nobody having needed it and nobody having wanted it enough to take the time to write a patch. The JDBC driver is readable and not hard to understand, so maybe you could chuck a patch together? (Fighting very hard to say "Oh, I'll do something like that" when I've already volunteered for way too much). -- Craig Ringer