pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Florian Weimer <fweimer@bfk.de>
To: John R Pierce <pierce@hogranch.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Connecting over UNIX domain sockets
Date: Wed, 09 Feb 2011 10:14:56 +0000
Message-ID: <82aai5zf8f.fsf@mid.bfk.de> (raw)
In-Reply-To: <4D5185AF.4070804@hogranch.com>
References: <82ei7i37ao.fsf@mid.bfk.de>
	<4D5185AF.4070804@hogranch.com>

* 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-)

-- 
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99



view thread (7+ messages)  latest in thread

Message-ID: <82aai5zf8f.fsf@mid.bfk.de>
Permalink:  ../82aai5zf8f.fsf@mid.bfk.de/
Also on:    postgresql.org/message-id/82aai5zf8f.fsf@mid.bfk.de

 · 

reply

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: fweimer@bfk.de, pierce@hogranch.com
  Subject: Re: Connecting over UNIX domain sockets
  In-Reply-To: <82aai5zf8f.fsf@mid.bfk.de>
  References: <82ei7i37ao.fsf@mid.bfk.de> <4D5185AF.4070804@hogranch.com> <82aai5zf8f.fsf@mid.bfk.de>

* 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