From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jean-Arthur Silve <jeanarthur@eurovox.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: Slow Remote connection
Date: Mon, 24 Jun 2002 18:55:22 -0400
Message-ID: <1835.1024959322@sss.pgh.pa.us> (raw)
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>
Jean-Arthur Silve <jeanarthur@eurovox.fr> 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
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, jeanarthur@eurovox.fr
Subject: Re: Slow Remote connection
In-Reply-To: <1835.1024959322@sss.pgh.pa.us>
References: <001f01c2191d$1677ef60$543c620a@catnet.com.br> <5.1.0.14.0.20020624162309.0407dbd0@mail.eurovox.fr> <1835.1024959322@sss.pgh.pa.us>
* 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