Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3693C1337B6E for ; Wed, 9 Feb 2011 06:15:06 -0400 (AST) 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 09936-03 for ; Wed, 9 Feb 2011 10:14:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx01.bfk.de (mx01.bfk.de [193.227.124.2]) by mail.postgresql.org (Postfix) with ESMTP id DE6191337B69 for ; Wed, 9 Feb 2011 06:14:58 -0400 (AST) Received: from mx00.int.bfk.de ([10.119.110.2]) by mx01.bfk.de with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) id 1Pn74a-0001CL-Ul; Wed, 09 Feb 2011 10:14:56 +0000 Received: by bfk.de with local id 1Pn74a-0001OE-Pr; Wed, 09 Feb 2011 10:14:56 +0000 To: John R Pierce Cc: pgsql-jdbc@postgresql.org Subject: Re: Connecting over UNIX domain sockets References: <82ei7i37ao.fsf@mid.bfk.de> <4D5185AF.4070804@hogranch.com> From: Florian Weimer Date: Wed, 09 Feb 2011 10:14:56 +0000 In-Reply-To: <4D5185AF.4070804@hogranch.com> (John R. Pierce's message of "Tue\, 08 Feb 2011 10\:04\:31 -0800") Message-ID: <82aai5zf8f.fsf@mid.bfk.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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/55 X-Sequence-Number: 21453 * John R. Pierce: > 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. I would try to add a low-level read/write API to libpq. libpq would only handle configuration processing, authentication and the transport layer (which may include TLS). > managing and installing JNI based code across platforms is a pain in > the sternum. Some people do have working software distribution platforms. 8-) --=20 Florian Weimer BFK edv-consulting GmbH http://www.bfk.de/ Kriegsstra=DFe 100 tel: +49-721-96201-1 D-76133 Karlsruhe fax: +49-721-96201-99