pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bakos Sandor <dr_saca@freemail.hu>
To: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: connection time out
Date: Thu, 18 May 2006 13:41:02 +0200
Message-ID: <446C5D4E.2010802@freemail.hu> (raw)
In-Reply-To: <4C64C4F5-DFC9-46EC-BFC0-035204E67F10@fastcrypt.com>
References: <446B3DB1.40109@freemail.hu>
	<4C64C4F5-DFC9-46EC-BFC0-035204E67F10@fastcrypt.com>

Hi,

I don't understand this. When I would like connect again to the server 
(after the blackout) I can connect from the client to the server
from psql but the Java can't. In this case no connection from the 
localhost. What can I set in the pg_hba.conf ?

Saca

Dave Cramer wrote:
> Hi,
>
> Check your pg_hba.conf file. Java typically will connect from the  
> main ethernet address where as psql connects from localhost.
>
> Dave
> On 17-May-06, at 11:13 AM, Bakos Sandor wrote:
>
>> Hi All!
>>
>> I have a linux clinet which connect to the remote posgtresql on a  
>> linux too with a java GUI application.
>> This application read an write the database when a blockout occurs.  
>> In this situation the java application
>> leave many connection in the postgresql (about 30). When the client  
>> is restarting and try to connect to the database I get an
>> exception:
>>
>> Caused by: java.net.ConnectException: Connection timed out
>>
>> but the max connection in the server is 200. From the console I can  
>> create many connection to the server (psql) just the java can't.
>>
>> Someone have an idea ?
>>
>> (postgresql 8, java 1.5)
>>
>> Thx.
>> Saca
>>
>> ---------------------------(end of  
>> broadcast)---------------------------
>> TIP 9: In versions below 8.0, the planner will ignore your desire to
>>       choose an index scan if your joining column's datatypes do not
>>       match
>>
>
>
>




view thread (8+ messages)

Message-ID: <446C5D4E.2010802@freemail.hu>
Permalink:  ../446C5D4E.2010802@freemail.hu/
Also on:    postgresql.org/message-id/446C5D4E.2010802@freemail.hu

 · 

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: dr_saca@freemail.hu, pg@fastcrypt.com
  Subject: Re: connection time out
  In-Reply-To: <446C5D4E.2010802@freemail.hu>
  References: <446B3DB1.40109@freemail.hu> <4C64C4F5-DFC9-46EC-BFC0-035204E67F10@fastcrypt.com> <446C5D4E.2010802@freemail.hu>

* 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