Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a4R4v-0007yP-Bo for pgsql-jdbc@arkaria.postgresql.org; Thu, 03 Dec 2015 10:25:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a4R4u-0007M5-N4 for pgsql-jdbc@arkaria.postgresql.org; Thu, 03 Dec 2015 10:25:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a4R4P-0006dc-5k for pgsql-jdbc@postgresql.org; Thu, 03 Dec 2015 10:25:01 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1a4R4F-0005IK-G0 for pgsql-jdbc@postgresql.org; Thu, 03 Dec 2015 10:24:58 +0000 Received: by wmec201 with SMTP id c201so19587122wme.0 for ; Thu, 03 Dec 2015 02:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=i59uPa/K7vqkSui7X331zgovrbf2r2mtbwP3vHQpg44=; b=PeTdzGbfs6Uudd4GmFWV3uBw8V7ZTjwrnUmtCsCAx3tqSiUPONy7iHuypDpM9gUQBD Liwdl8V7OruRqN4H0qKmNn3epL0mZSU2Ze5UrI6QAU9OJCJMYCBlLDpMjup0V2P5eYRN 7WJWQEtiSQFUMTW8xzCLr8cLkmQNGYd2SKUlGCaKosn74n6s7OB7Ba7IqnGDncypQECs Nrc5PjeODLyXp9ANVZsxE7JJ1RMTMNbnnCMs7vdgbqNw2Z1ME3fcOZ1QsSjgpxi9A7y2 jOskrPv1ZY8lOLWKO8Y6MGSzrJzMBTSYL+VSzmVZ8tWmwkXil2HvDSEkf6jrHVCJKcgD b/VQ== X-Received: by 10.194.191.134 with SMTP id gy6mr11185457wjc.173.1449138289677; Thu, 03 Dec 2015 02:24:49 -0800 (PST) Received: from [192.168.1.66] (123.209.115.89.rev.vodafone.pt. [89.115.209.123]) by smtp.gmail.com with ESMTPSA id cw3sm6847414wjb.26.2015.12.03.02.24.48 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Dec 2015 02:24:48 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_B5274EF7-26D3-4249-968B-88BD79546B0B" Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: user can't access own database after creation From: Nuno Zimas In-Reply-To: Date: Thu, 3 Dec 2015 10:24:47 +0000 Cc: John R Pierce , List Message-Id: <8C31F005-4503-4EA0-98D5-D76FFC47B6CA@gmail.com> References: <25B91293-CCF8-42D9-B4ED-19DF36AA881C@gmail.com> <565F4D26.1050501@hogranch.com> <00A2FA5A-3C2A-40CD-9174-EBCC14164B74@gmail.com> <6B5C6030-ABBE-4283-9195-8E4D3E031261@gmail.com> <9C9EB124-5C7C-48B3-BF8D-52B8A7A88F36@gmail.com> To: Dave Cramer X-Mailer: Apple Mail (2.3096.5) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --Apple-Mail=_B5274EF7-26D3-4249-968B-88BD79546B0B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Dave, Since you do know quite a bit about Java, could you please tell me if = there=E2=80=99s something fishy in the file where the connection to = postgresql is defined? Thank you. = https://github.com/flabser/2next/blob/master/src/com/flabser/dataengine/Da= tabaseCore.java Nuno. > On 2 Dec 2015, at 22:17, Dave Cramer wrote: >=20 > Yes, JDBC is still involved. I'd say there is a mistake in the JPA = config >=20 > Dave Cramer >=20 > davec@postgresintl.com > www.postgresintl.com > On 2 December 2015 at 17:15, Nuno Zimas > wrote: > The programmer says that she relies on JPA to establish the = connection, but I suppose that JDBC is still involved, otherwise i = can=E2=80=99t see how java would talk to postgresql.=20 > Unless JPA does so directly. > Like I said, Java really isn=E2=80=99t my thing. >=20 >=20 >=20 >> On 2 Dec 2015, at 22:05, Nuno Zimas > wrote: >>=20 >>=20 >> Thanks a lot, everyone (and specially Dave Cramer). >> Now I know the issue is not JDBC related. >> Not sure of this is good news for me, though :) >>=20 >> I=E2=80=99d think that the application needs to be amended. >> Still, this does not account for the fact that it works on a local = win machine. >>=20 >> As you can see, Dave=E2=80=99s little program connects like a charm, >>=20 >> 2015-12-02 17:00:22 EST [2408-1] postgres@postgres LOG: duration: = 16.239 ms parse : SET extra_float_digits =3D 3 >> 2015-12-02 17:00:22 EST [2408-2] postgres@postgres LOG: duration: = 0.023 ms bind : SET extra_float_digits =3D 3 >> 2015-12-02 17:00:22 EST [2408-3] postgres@postgres LOG: duration: = 0.031 ms execute : SET extra_float_digits =3D 3 >> 2015-12-02 17:00:22 EST [2408-4] postgres@postgres LOG: duration: = 0.217 ms parse : select 1 >> 2015-12-02 17:00:22 EST [2408-5] postgres@postgres LOG: duration: = 0.100 ms bind : select 1 >> 2015-12-02 17:00:22 EST [2408-6] postgres@postgres LOG: duration: = 0.953 ms execute : select 1 >>=20 >>=20 >>=20 >>> On 2 Dec 2015, at 21:45, Dave Cramer > wrote: >>>=20 >>> log_min_duration >>=20 >=20 >=20 --Apple-Mail=_B5274EF7-26D3-4249-968B-88BD79546B0B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Hi Dave,

Since you = do know quite a bit about Java, could you please tell me if there=E2=80=99= s something fishy in the file where the connection  to postgresql = is defined?

Thank = you.


Nuno.


On 2 Dec 2015, at 22:17, Dave Cramer <pg@fastcrypt.com> = wrote:

Yes, JDBC is still involved. I'd say there is a = mistake in the JPA config


On 2 December 2015 at 17:15, = Nuno Zimas <nzimas@gmail.com> wrote:
The programmer = says that she relies on JPA to establish the connection, but I suppose = that JDBC is still involved, otherwise i can=E2=80=99t see how java = would talk to postgresql. 
Unless JPA does so = directly.
Like I said, Java really isn=E2=80=99t my = thing.



On 2 Dec 2015, at 22:05, Nuno Zimas <nzimas@gmail.com> wrote:


Thanks a lot, = everyone (and specially Dave Cramer).
Now I know the issue = is not JDBC related.
Not sure of this is = good news for me, though :)

I=E2=80=99d think = that the application needs to be amended.
Still, this does not = account for the fact that it works on a local win machine.

As you can see, = Dave=E2=80=99s little program connects like a charm,

2015-12-02 17:00:22 EST = [2408-1] postgres@postgres LOG:  duration: 16.239 ms  parse = <unnamed>: SET extra_float_digits =3D 3
2015-12-02 17:00:22 EST = [2408-2] postgres@postgres LOG:  duration: 0.023 ms  bind = <unnamed>: SET extra_float_digits =3D 3
2015-12-02 17:00:22 EST = [2408-3] postgres@postgres LOG:  duration: 0.031 ms  execute = <unnamed>: SET extra_float_digits =3D 3
2015-12-02 17:00:22 EST = [2408-4] postgres@postgres LOG:  duration: 0.217 ms  parse = <unnamed>: select 1
2015-12-02 17:00:22 EST [2408-5] postgres@postgres LOG: =  duration: 0.100 ms  bind <unnamed>: select 1
2015-12-02 17:00:22 EST = [2408-6] postgres@postgres LOG:  duration: 0.953 ms  execute = <unnamed>: select 1


<= /div>

On 2 Dec 2015, at 21:45, Dave Cramer <pg@fastcrypt.com> wrote:

log_min_duration




= --Apple-Mail=_B5274EF7-26D3-4249-968B-88BD79546B0B--