Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 82197B5DBC4 for ; Mon, 27 Jun 2011 16:02:27 -0300 (ADT) 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 70131-07 for ; Mon, 27 Jun 2011 19:02:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm17-vm0.bullet.mail.ac4.yahoo.com (nm17-vm0.bullet.mail.ac4.yahoo.com [98.139.53.208]) by mail.postgresql.org (Postfix) with SMTP id B5148B5D94C for ; Mon, 27 Jun 2011 16:02:20 -0300 (ADT) Received: from [98.139.52.190] by nm17.bullet.mail.ac4.yahoo.com with NNFMP; 27 Jun 2011 19:02:20 -0000 Received: from [98.139.52.187] by tm3.bullet.mail.ac4.yahoo.com with NNFMP; 27 Jun 2011 19:02:20 -0000 Received: from [127.0.0.1] by omp1070.mail.ac4.yahoo.com with NNFMP; 27 Jun 2011 19:02:20 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 30379.98245.bm@omp1070.mail.ac4.yahoo.com Received: (qmail 23538 invoked by uid 60001); 27 Jun 2011 19:02:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1309201339; bh=rD54BBKox7BjjgG1+JAaoKizC54C1GgAwTAcvBw/jDI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ivffAvBbS4P6nm1KYkqWOy1kT5BMrNELkA2fVInhgtUziCV6I6U6DjDD5PdF80ke8H7tsK8lMniHxGuJPUZTwhqc0ewIbl2CO7Lb3kbkg+FsW9pndYSfdojHzyTQeeT912wf9G/SqlEhD+c7xzJoN7GpKJZw71bK5+GBRZcyfKA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=vAz4j2CgqFZMmWVUkRkH05/yACnTqdYxTUuulJuEEAWzneWFL8DZQ9+goOiOX6ElAv0DjqcBw4QagsUmNSBOyRuSnfH0a9mPL3EDB8YKAFK4zjmgmhWMfht18oqjB3do1SvfXV6USDAi4o7kIzOnKhlGQraXrTL2Y23rg1xSdpk=; Message-ID: <852104.71586.qm@web65506.mail.ac4.yahoo.com> X-YMail-OSG: a2a3XdsVM1nflRXFVczm11ajCdkuNjx6R6jt3fCEvFdWtXC 3bqoqU3nI9zndWJS6rTvouUjr16glmSQMrRkrkk3M5a_ibLIFhDfssR23kXx 6U45OZhw_9_llDK55n6ZfzDppXkvKrb87dkWsYgiaaaEbIozqSj3xyIEVU.A 6yqbCuHFBVhHiW7H_0LrCefUEbIkY81Ck2iFfdOWDWA68aq_yER03je7S7.H Vo4GFrrGJ51BXwnyX_8F4NNmMnfNXqcu90LpOQRcsFYstjdj67YuQwcg0qq0 Ano6QrWQMqbJ5MWqD82pEQVePd3g6Ie0h7BTw4q1EWcmytlaQ2wLrbFQ2rVv 3x3pp.Y_1mi02JNrzmAWxrvCW9iJxzrudXVNb6xP_tCepA8ymZ1cMSStOlyj N00qZFenMJqr6cvi.91gUujheLUYw9ze8MRBbbeuHC2Rdp5pyDE4eHiqRolw G_QthmTey7ELiMcQqCFwBdo6Osh9IBQf8wLLv32FlQ5ALsJarvwel29DsLxN vAwh7OFn9 Received: from [216.240.30.23] by web65506.mail.ac4.yahoo.com via HTTP; Mon, 27 Jun 2011 12:02:19 PDT X-Mailer: YahooMailRC/572 YahooMailWebService/0.8.111.304355 Date: Mon, 27 Jun 2011 12:02:19 -0700 (PDT) From: Phil Clay Subject: Re: Connecting over UNIX domain sockets To: pgsql-jdbc@postgresql.org, Florian Weimer , pierce@hogranch.com 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.909 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/66 X-Sequence-Number: 21990 On 02/08/11 6:55 AM, Florian Weimer wrote:=0A=0A>I would like to have the o= ption to connect to the database over UNIX=0A>domain sockets (sidestepping = the question of password management).=0A>=0A>Even though the JVM knows abou= t UNIX domain sockets, this=0A>functionality is not exposed to user code, s= o we'd have to add some=0A>JNI code. Would you like to integrate this in s= ome way? If yes,=0A>would you prefer a socket-based or libpq-based approac= h?=0A>=0A>-- =0A>Florian Weimer =0A>B= FK edv-consulting GmbH http://www.bfk.de/=0A>Kriegsstra=DFe 100 = tel: +49-721-96201-1=0A>D-76133 Karlsruhe fax: +49-721-= 96201-99=0A=0A=0A=0AApologies for resurrecting an old thread, but I'm also = interested in using =0Adomain sockets with postgres' jdbc driver.=0A=0ATo a= ny potential implementors, I wanted to point out something that might be = =0Auseful...=0A=0AThe junixsocket project (http://code.google.com/p/junixso= cket/) provides an =0Aimplementation of java.net.Socket that uses domain so= ckets. It also provides a =0Amysql SocketFactory so that mysql's jdbc driv= er can be used with domain =0Asockets. =0AHowever, contrary to mysql's jdb= c driver, postgres' jdbc driver does not appear =0Ato be designed in a way = that a different Socket implementation could be easily =0A"plugged in".=0A= =0A=0AIf the postgres jdbc project does not want the full burden of managin= g the =0Anative code required for domain socket connectivity, perhaps one a= pproach to =0Atake would be to refactor the postgres jdbc driver in such a = way that a =0Adifferent mechanism for constructing sockets could be plugged= in. Then an =0Aimplementation could be provided by junixsocket, which alr= eady has the native =0Adistribution mechanism.=0A=0AJust a thought.=0A=0APh= il