X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9C9079FA4EA for ; Thu, 18 May 2006 08:41:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 16186-07 for ; Thu, 18 May 2006 08:41:06 -0300 (ADT) X-Greylist: delayed 20:27:12.447121 by SQLgrey- Received: from medcfs.hu (246-137.fixip.pool.ew.hu [212.108.246.137]) by postgresql.org (Postfix) with ESMTP id 8AF349F9C18 for ; Thu, 18 May 2006 08:41:07 -0300 (ADT) Received: from [192.168.1.4] (saca.intra.medcfs.hu [192.168.1.4]) by medcfs.hu (Postfix) with ESMTP id 648237D8D6; Thu, 18 May 2006 13:43:09 +0200 (CEST) Message-ID: <446C5D4E.2010802@freemail.hu> Date: Thu, 18 May 2006 13:41:02 +0200 From: Bakos Sandor User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer Cc: pgsql-jdbc@postgresql.org Subject: Re: connection time out References: <446B3DB1.40109@freemail.hu> <4C64C4F5-DFC9-46EC-BFC0-035204E67F10@fastcrypt.com> In-Reply-To: <4C64C4F5-DFC9-46EC-BFC0-035204E67F10@fastcrypt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/80 X-Sequence-Number: 15208 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 >> > > >