From: Craig Ringer <craig@postnewspapers.com.au>
To: Phil Clay <pilf_b@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Connecting over UNIX domain sockets
Date: Tue, 28 Jun 2011 06:20:01 +0800
Message-ID: <4E090211.8010502@postnewspapers.com.au> (raw)
In-Reply-To: <852104.71586.qm@web65506.mail.ac4.yahoo.com>
References: <852104.71586.qm@web65506.mail.ac4.yahoo.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: craig@postnewspapers.com.au, pilf_b@yahoo.com
Subject: Re: Connecting over UNIX domain sockets
In-Reply-To: <4E090211.8010502@postnewspapers.com.au>
References: <852104.71586.qm@web65506.mail.ac4.yahoo.com> <4E090211.8010502@postnewspapers.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox