pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgres v8 jdbc connect fails while v7.4 connection works
6+ messages / 5 participants
[nested] [flat]
* Postgres v8 jdbc connect fails while v7.4 connection works
@ 2005-05-05 19:03 davidb999@gmail.com
0 siblings, 2 replies; 6+ messages in thread
From: davidb999@gmail.com @ 2005-05-05 19:03 UTC (permalink / raw)
To: pgsql-jdbc
Folks,
I point my app on my local PC at a v8 database on server A and it
fails. If I point it at v7.4 db on server B it works. All are Red Hat
ES3.
I've upgraded to latest drivers.
I've checked _hba and confirmed my IP address is there.
In fact they are there in the new format x.x.x.0/255
I can connect locally on the box so I know postmaster is running.
Any thoughts?
TIA...
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres v8 jdbc connect fails while v7.4 connection
@ 2005-05-05 19:36 Dave Cramer <pg@fastcrypt.com>
parent: davidb999@gmail.com
1 sibling, 1 reply; 6+ messages in thread
From: Dave Cramer @ 2005-05-05 19:36 UTC (permalink / raw)
To: davidb999@gmail.com; +Cc: pgsql-jdbc
Make sure you can telnet to port 5432 on the box in question
connecting locally doesn't say much
look in postgresql.conf and change listen_address to '*'
Dave
davidb999@gmail.com wrote:
>Folks,
>I point my app on my local PC at a v8 database on server A and it
>fails. If I point it at v7.4 db on server B it works. All are Red Hat
>ES3.
>
>I've upgraded to latest drivers.
>I've checked _hba and confirmed my IP address is there.
>In fact they are there in the new format x.x.x.0/255
>
>I can connect locally on the box so I know postmaster is running.
>
>Any thoughts?
>
>TIA...
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
>
>
>
>
--
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres v8 jdbc connect fails while v7.4 connection
@ 2005-05-05 19:48 Prasanth <dbadmin@nqadmin.com>
parent: davidb999@gmail.com
1 sibling, 0 replies; 6+ messages in thread
From: Prasanth @ 2005-05-05 19:48 UTC (permalink / raw)
To: davidb999@gmail.com; +Cc: pgsql-jdbc
Did you check if tcp/ip is set to true in your config file?
-Prasanth.
davidb999@gmail.com wrote:
> Folks,
> I point my app on my local PC at a v8 database on server A and it
> fails. If I point it at v7.4 db on server B it works. All are Red Hat
> ES3.
>
> I've upgraded to latest drivers.
> I've checked _hba and confirmed my IP address is there.
> In fact they are there in the new format x.x.x.0/255
>
> I can connect locally on the box so I know postmaster is running.
>
> Any thoughts?
>
> TIA...
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres v8 jdbc connect fails while v7.4 connection
@ 2005-05-05 22:08 DavidB <davidb999@gmail.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 6+ messages in thread
From: DavidB @ 2005-05-05 22:08 UTC (permalink / raw)
To: pgsql-jdbc
OK...got it. First I had changed listen_address to '*' but had left it
commented out<duh!>
When I fixed that I tried restarting and hit problem #2...
I had hba_conf settings like:
host all all 111.123.21.1/32 trust
didn't work but going back to old v7 format of
host all all 111.123.21.1 255.255.255.0 trust
did work.
Problem in my definition?
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres v8 jdbc connect fails while v7.4 connection
@ 2005-05-05 22:33 Oliver Jowett <oliver@opencloud.com>
parent: DavidB <davidb999@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Jowett @ 2005-05-05 22:33 UTC (permalink / raw)
To: DavidB <davidb999@gmail.com>; +Cc: pgsql-jdbc
DavidB wrote:
> I had hba_conf settings like:
> host all all 111.123.21.1/32 trust
>
> didn't work but going back to old v7 format of
> host all all 111.123.21.1 255.255.255.0 trust
>
> did work.
> Problem in my definition?
/32 means 255.255.255.255
/24 means 255.255.255.0
so the above two lines have different meanings.
-O
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Postgres v8 jdbc connect fails while v7.4 connection
@ 2005-05-05 23:46 DavidB <davidb999@gmail.com>
parent: Oliver Jowett <oliver@opencloud.com>
0 siblings, 0 replies; 6+ messages in thread
From: DavidB @ 2005-05-05 23:46 UTC (permalink / raw)
To: pgsql-jdbc
Got ya...that I had not really noticed even though its documented here:
http://developer.postgresql.org/docs/postgres/client-authentication.html#EXAMPLE-PG-HBA.CONF
Thanks all...
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2005-05-05 23:46 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-05-05 19:03 Postgres v8 jdbc connect fails while v7.4 connection works davidb999@gmail.com
2005-05-05 19:36 ` Re: Postgres v8 jdbc connect fails while v7.4 connection Dave Cramer <pg@fastcrypt.com>
2005-05-05 22:08 ` Re: Postgres v8 jdbc connect fails while v7.4 connection DavidB <davidb999@gmail.com>
2005-05-05 22:33 ` Re: Postgres v8 jdbc connect fails while v7.4 connection Oliver Jowett <oliver@opencloud.com>
2005-05-05 23:46 ` Re: Postgres v8 jdbc connect fails while v7.4 connection DavidB <davidb999@gmail.com>
2005-05-05 19:48 ` Re: Postgres v8 jdbc connect fails while v7.4 connection Prasanth <dbadmin@nqadmin.com>
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