Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 4B0384763E3 for ; Mon, 24 Jun 2002 20:36:53 -0400 (EDT) Mailbox-Line: From tgl@sss.pgh.pa.us Mon Jun 24 20:36:53 2002 Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id AAC90476337 for ; Mon, 24 Jun 2002 18:55:34 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5OMtN101838; Mon, 24 Jun 2002 18:55:23 -0400 (EDT) To: Jean-Arthur Silve Cc: pgsql-admin@postgresql.org Subject: Re: Slow Remote connection In-reply-to: <5.1.0.14.0.20020624162309.0407dbd0@mail.eurovox.fr> References: <001f01c2191d$1677ef60$543c620a@catnet.com.br> <5.1.0.14.0.20020624162309.0407dbd0@mail.eurovox.fr> Comments: In-reply-to Jean-Arthur Silve message dated "Mon, 24 Jun 2002 16:26:46 +0200" Date: Mon, 24 Jun 2002 18:55:22 -0400 Message-ID: <1835.1024959322@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-5.3 required=5.0 tests=IN_REP_TO,X_NOT_PRESENT version=2.30 X-Spam-Level: X-Archive-Number: 200206/196 X-Sequence-Number: 4630 Jean-Arthur Silve writes: > I have a httpd server on one server, and PostgresQL 7.2 on a second server > (P4 1.7 Ghz / Linux ) on a local network. > When there are about 20 (and more ) connection on the DB, the remote > connecxtion to the DB from the web server is very long (about 5-10 sec) > before have the prompt. > On the local machine, it's near immediate. Weird. Perhaps something wrong with your DNS setup, causing it to take a long time to resolve the name of the other machine? Anyway I'd suspect that the problem is not within Postgres proper, given that you're not seeing a performance problem with local connections. Another thing you might try just to obtain more data is to test local connections that use TCP rather than Unix-socket transport, eg psql -h 127.0.0.1 > I use IP authentification (no username/password). You mean "trust"? Please describe your pg_hba contents *exactly*; this might be a relevant difference ... regards, tom lane