Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5OdX-0005L2-8n for pgsql-jdbc@arkaria.postgresql.org; Mon, 20 Jan 2014 23:52:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W5OdW-0005VW-Kn for pgsql-jdbc@arkaria.postgresql.org; Mon, 20 Jan 2014 23:52:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5OdV-0005VQ-UW for pgsql-jdbc@postgresql.org; Mon, 20 Jan 2014 23:52:10 +0000 Received: from api.jumis.com ([216.211.133.46] helo=w46.jumis.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W5OdQ-0000bi-AE for pgsql-jdbc@postgresql.org; Mon, 20 Jan 2014 23:52:08 +0000 Received: (qmail 16837 invoked from network); 20 Jan 2014 15:44:12 -0800 Received: from c-98-232-8-78.hsd1.wa.comcast.net (HELO ?192.168.1.122?) (chuck@98.232.8.78) by w46.jumis.com with SMTP; 20 Jan 2014 15:44:12 -0800 Message-ID: <52DDB69D.1000008@jumis.com> Date: Mon, 20 Jan 2014 15:51:57 -0800 From: Charles Pritchard User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Dave Cramer CC: List Subject: Re: revisiting unix domain sockets References: <52B02F16.7060409@jumis.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------040304060208080708030001" X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multi-part message in MIME format. --------------040304060208080708030001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here's a quick diff if anyone is interested. https://gist.github.com/Downchuck/8531692 Needs JNA in the class path. Seems to work. We've released this under the same license as pgjdbc. https://github.com/pgjdbc/pgjdbc/blob/master/LICENSE Uses ?unixSocket= as the parameter for the path. -Charles On 12/17/2013 4:25 AM, Dave Cramer wrote: > Send a PR and I'll look at it. > > Dave Cramer > > dave.cramer(at)credativ(dot)ca > http://www.credativ.ca > > > On Tue, Dec 17, 2013 at 6:01 AM, Charles Pritchard > wrote: > > Has there been any movement and-or push back around supporting > unix domain sockets within the connection string? I've seen simple > patches on the web to add support- it seems like a trivial matter, > is there a design consideration or other issue outstanding? > > Example of using JNA for unix domain sockets: > http://www.productivity.org/projects/mysqlunixsocket/MysqlUnixSocketFactory.java > > -Charles > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org > ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > > --------------040304060208080708030001 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Here's a quick diff if anyone is interested.
https://gist.github.com/Downchuck/8531692

Needs JNA in the class path. Seems to work.

We've released this under the same license as pgjdbc.
https://github.com/pgjdbc/pgjdbc/blob/master/LICENSE

Uses ?unixSocket= as the parameter for the path.


-Charles


On 12/17/2013 4:25 AM, Dave Cramer wrote:
Send a PR and I'll look at it.

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca


On Tue, Dec 17, 2013 at 6:01 AM, Charles Pritchard <chuck@jumis.com> wrote:
Has there been any movement and-or push back around supporting unix domain sockets within the connection string? I've seen simple patches on the web to add support- it seems like a trivial matter, is there a design consideration or other issue outstanding?

Example of using JNA for unix domain sockets:
http://www.productivity.org/projects/mysqlunixsocket/MysqlUnixSocketFactory.java

-Charles


--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc


--------------040304060208080708030001--