Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9DFD01337B58 for ; Tue, 8 Feb 2011 14:04:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 72202-02 for ; Tue, 8 Feb 2011 18:04:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hogranch.com (hogranch.com [75.101.82.47]) by mail.postgresql.org (Postfix) with ESMTP id 25BAB1336B42 for ; Tue, 8 Feb 2011 14:04:42 -0400 (AST) Received: from [127.0.0.1] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id p18I4a820247 for ; Tue, 8 Feb 2011 10:04:36 -0800 Message-ID: <4D5185AF.4070804@hogranch.com> Date: Tue, 08 Feb 2011 10:04:31 -0800 From: John R Pierce User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Connecting over UNIX domain sockets References: <82ei7i37ao.fsf@mid.bfk.de> In-Reply-To: <82ei7i37ao.fsf@mid.bfk.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean 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: 201102/48 X-Sequence-Number: 21446 On 02/08/11 6:55 AM, Florian Weimer wrote: > I would like to have the option to connect to the database over UNIX > domain sockets (sidestepping the question of password management). > > Even though the JVM knows about UNIX domain sockets, this > functionality is not exposed to user code, so we'd have to add some > JNI code. Would you like to integrate this in some way? If yes, > would you prefer a socket-based or libpq-based approach? socket based would require less work, as you'd just add that to the existing socket code, while using libpq would essentially end up with an entirely different JDBC. managing and installing JNI based code across platforms is a pain in the sternum.