pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radoslav Petrov <rado@edno.moe>
To: Sehrope Sarkuni <sehrope@jackdb.com>
To: Dan <dan@scapps.co.uk>
Cc: pgsql-jdbc@lists.postgresql.org
Subject: Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC
Date: Sun, 8 Dec 2019 16:17:41 +0200
Message-ID: <8044b2dd-8fc4-3b54-fd6e-c724e9be2842@edno.moe> (raw)
In-Reply-To: <CAH7T-ao-2bryKEYRjDFAgGYpgi8R46oMrLegTenmJ+-WOX8h+g@mail.gmail.com>
References: <157580485223.6591.10998780803617504400@malur.postgresql.org>
	<adab8102-6e97-e2b8-c7fd-2c741b8135f5@scapps.co.uk>
	<CAH7T-ao-2bryKEYRjDFAgGYpgi8R46oMrLegTenmJ+-WOX8h+g@mail.gmail.com>


On 8.12.2019 14:13, Dan wrote:
> <property 
> name="hibernate.connection.url">jdbc:postgresql:kokodoko?socketFactory=org.newsclub.net.unix.socketfactory.PostgresqlAFUNIXSocketFactory&socketFactoryArg=/var/run/postgresql/.s.PGSQL.5432</property>

On 8.12.2019 15:27, Sehrope Sarkuni wrote:
> Is the issue the unescaped ampersand? (the "&")
>
> Replace any raw & in the URL value with &amp; and see if that works. I 
> think this is just an XML parsing issue unrelated to the driver itself.
>
> Regards,
> -- Sehrope Sarkuni
> Founder & CEO | JackDB, Inc. | https://www.jackdb.com/

Also the documentation of `junixsockets` mentions three ways to provide 
the configuration of the JDBC connection for PostgreSQL. 
https://kohlschutter.github.io/junixsocket/dependency.html
It states mandatory use of `localhost` in the connection string for 
variant 1 and 2. IMO You are using variant 1.

-- 
Поздрави,       | Best regards,
Радослав Петров | Radoslav Petrov

view thread (5+ messages)  latest in thread

Message-ID: <8044b2dd-8fc4-3b54-fd6e-c724e9be2842@edno.moe>
Permalink:  ../8044b2dd-8fc4-3b54-fd6e-c724e9be2842@edno.moe/
Also on:    postgresql.org/message-id/8044b2dd-8fc4-3b54-fd6e-c724e9be2842@edno.moe

 · 

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: rado@edno.moe, sehrope@jackdb.com, dan@scapps.co.uk
  Subject: Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC
  In-Reply-To: <8044b2dd-8fc4-3b54-fd6e-c724e9be2842@edno.moe>
  References: <157580485223.6591.10998780803617504400@malur.postgresql.org> <adab8102-6e97-e2b8-c7fd-2c741b8135f5@scapps.co.uk> <CAH7T-ao-2bryKEYRjDFAgGYpgi8R46oMrLegTenmJ+-WOX8h+g@mail.gmail.com> <8044b2dd-8fc4-3b54-fd6e-c724e9be2842@edno.moe>

* 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