pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedsupporting any/all connection types including unix domain sockets
7+ messages / 3 participants
[nested] [flat]
* supporting any/all connection types including unix domain sockets
@ 2015-07-13 17:51 Travis Wellman <travis@traviswellman.com>
2015-07-15 10:42 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
0 siblings, 1 reply; 7+ messages in thread
From: Travis Wellman @ 2015-07-13 17:51 UTC (permalink / raw)
To: pgsql-jdbc
I'm writing an app using JavaFX to connect to arbitrary PostgreSQL
nodes and take generic and introspective actions. Ideally the user
should be able to connect via all previously configured means. Has
anyone used Java to connect to a Postgres instance via the unix domain
socket? Any source I can view?
Travis
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: supporting any/all connection types including unix domain sockets
2015-07-13 17:51 supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
@ 2015-07-15 10:42 ` Luca Ferrari <fluca1978@infinito.it>
2015-07-15 14:07 ` Re: supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
0 siblings, 1 reply; 7+ messages in thread
From: Luca Ferrari @ 2015-07-15 10:42 UTC (permalink / raw)
To: Travis Wellman <travis@traviswellman.com>; +Cc: pgsql-jdbc
On Mon, Jul 13, 2015 at 7:51 PM, Travis Wellman
<travis@traviswellman.com> wrote:
> I'm writing an app using JavaFX to connect to arbitrary PostgreSQL
> nodes and take generic and introspective actions. Ideally the user
> should be able to connect via all previously configured means. Has
> anyone used Java to connect to a Postgres instance via the unix domain
> socket? Any source I can view?
I guess you have to reimplement the protocol used for instance in libpq.
I'm not sure this is a winning choice, why not using the JDBC
connection mechanism?
Luca
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: supporting any/all connection types including unix domain sockets
2015-07-13 17:51 supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
2015-07-15 10:42 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
@ 2015-07-15 14:07 ` Travis Wellman <travis@traviswellman.com>
2015-07-16 06:21 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
0 siblings, 1 reply; 7+ messages in thread
From: Travis Wellman @ 2015-07-15 14:07 UTC (permalink / raw)
To: Luca Ferrari <fluca1978@infinito.it>; +Cc: pgsql-jdbc
Because I need to be able to connect in whatever way was previously configured.
On July 15, 2015 3:42:19 AM PDT, Luca Ferrari <fluca1978@infinito.it> wrote:
>On Mon, Jul 13, 2015 at 7:51 PM, Travis Wellman
><travis@traviswellman.com> wrote:
>> I'm writing an app using JavaFX to connect to arbitrary PostgreSQL
>> nodes and take generic and introspective actions. Ideally the user
>> should be able to connect via all previously configured means. Has
>> anyone used Java to connect to a Postgres instance via the unix
>domain
>> socket? Any source I can view?
>
>I guess you have to reimplement the protocol used for instance in
>libpq.
>I'm not sure this is a winning choice, why not using the JDBC
>connection mechanism?
>
>Luca
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: supporting any/all connection types including unix domain sockets
2015-07-13 17:51 supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
2015-07-15 10:42 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
2015-07-15 14:07 ` Re: supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
@ 2015-07-16 06:21 ` Luca Ferrari <fluca1978@infinito.it>
2015-07-16 10:31 ` Re: supporting any/all connection types including unix domain sockets Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 7+ messages in thread
From: Luca Ferrari @ 2015-07-16 06:21 UTC (permalink / raw)
To: Travis Wellman <travis@traviswellman.com>; +Cc: pgsql-jdbc
On Wed, Jul 15, 2015 at 4:07 PM, Travis Wellman
<travis@traviswellman.com> wrote:
> Because I need to be able to connect in whatever way was previously
> configured.
Then I'll take a look at libpq details.
However, I believe this is not the right path, I mean there's nothing
insecure in configuring a single user to access via tcp/ip (secure)
sockets and use well tested jdbc code.
My 2cents.
Luca
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: supporting any/all connection types including unix domain sockets
2015-07-13 17:51 supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
2015-07-15 10:42 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
2015-07-15 14:07 ` Re: supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
2015-07-16 06:21 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
@ 2015-07-16 10:31 ` Dave Cramer <pg@fastcrypt.com>
2015-07-16 17:08 ` Re: supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
0 siblings, 1 reply; 7+ messages in thread
From: Dave Cramer @ 2015-07-16 10:31 UTC (permalink / raw)
To: Luca Ferrari <fluca1978@infinito.it>; +Cc: Travis Wellman <travis@traviswellman.com>; pgsql-jdbc
On 16 July 2015 at 02:21, Luca Ferrari <fluca1978@infinito.it> wrote:
> On Wed, Jul 15, 2015 at 4:07 PM, Travis Wellman
> <travis@traviswellman.com> wrote:
> > Because I need to be able to connect in whatever way was previously
> > configured.
>
> Then I'll take a look at libpq details.
> However, I believe this is not the right path, I mean there's nothing
> insecure in configuring a single user to access via tcp/ip (secure)
> sockets and use well tested jdbc code.
> My 2cents.
>
> Luca
>
Yes, the notion would be to hook into the JDBC code with something that
communicated with sockets instead
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: supporting any/all connection types including unix domain sockets
2015-07-13 17:51 supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
2015-07-15 10:42 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
2015-07-15 14:07 ` Re: supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
2015-07-16 06:21 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
2015-07-16 10:31 ` Re: supporting any/all connection types including unix domain sockets Dave Cramer <pg@fastcrypt.com>
@ 2015-07-16 17:08 ` Travis Wellman <travis@traviswellman.com>
2015-07-17 07:55 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
0 siblings, 1 reply; 7+ messages in thread
From: Travis Wellman @ 2015-07-16 17:08 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; Luca Ferrari <fluca1978@infinito.it>; +Cc: pgsql-jdbc
Is it the same protocol?
On July 16, 2015 3:31:13 AM PDT, Dave Cramer <pg@fastcrypt.com> wrote:
>On 16 July 2015 at 02:21, Luca Ferrari <fluca1978@infinito.it> wrote:
>
>> On Wed, Jul 15, 2015 at 4:07 PM, Travis Wellman
>> <travis@traviswellman.com> wrote:
>> > Because I need to be able to connect in whatever way was previously
>> > configured.
>>
>> Then I'll take a look at libpq details.
>> However, I believe this is not the right path, I mean there's nothing
>> insecure in configuring a single user to access via tcp/ip (secure)
>> sockets and use well tested jdbc code.
>> My 2cents.
>>
>> Luca
>>
>
>Yes, the notion would be to hook into the JDBC code with something that
>communicated with sockets instead
>
>Dave Cramer
>
>dave.cramer(at)credativ(dot)ca
>http://www.credativ.ca
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: supporting any/all connection types including unix domain sockets
2015-07-13 17:51 supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
2015-07-15 10:42 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
2015-07-15 14:07 ` Re: supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
2015-07-16 06:21 ` Re: supporting any/all connection types including unix domain sockets Luca Ferrari <fluca1978@infinito.it>
2015-07-16 10:31 ` Re: supporting any/all connection types including unix domain sockets Dave Cramer <pg@fastcrypt.com>
2015-07-16 17:08 ` Re: supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
@ 2015-07-17 07:55 ` Luca Ferrari <fluca1978@infinito.it>
0 siblings, 0 replies; 7+ messages in thread
From: Luca Ferrari @ 2015-07-17 07:55 UTC (permalink / raw)
To: Travis Wellman <travis@traviswellman.com>; +Cc: Dave Cramer <pg@fastcrypt.com>; pgsql-jdbc
On Thu, Jul 16, 2015 at 7:08 PM, Travis Wellman
<travis@traviswellman.com> wrote:
> Is it the same protocol?
At the very low end it is the same protocol:
http://www.postgresql.org/docs/current/static/protocol.html
Luca
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2015-07-17 07:55 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-07-13 17:51 supporting any/all connection types including unix domain sockets Travis Wellman <travis@traviswellman.com>
2015-07-15 10:42 ` Luca Ferrari <fluca1978@infinito.it>
2015-07-15 14:07 ` Travis Wellman <travis@traviswellman.com>
2015-07-16 06:21 ` Luca Ferrari <fluca1978@infinito.it>
2015-07-16 10:31 ` Dave Cramer <pg@fastcrypt.com>
2015-07-16 17:08 ` Travis Wellman <travis@traviswellman.com>
2015-07-17 07:55 ` Luca Ferrari <fluca1978@infinito.it>
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