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, 01 Jul 2002 11:19:04 -0400
Message-ID: <13796.1025536744@sss.pgh.pa.us> (raw)
In-Reply-To: <5.1.0.14.0.20020701143750.036a7680@mail.eurovox.fr>
References: <5.1.0.14.0.20020624162309.0407dbd0@mail.eurovox.fr>
<001f01c2191d$1677ef60$543c620a@catnet.com.br>
<5.1.0.14.0.20020624162309.0407dbd0@mail.eurovox.fr>
<5.1.0.14.0.20020701143750.036a7680@mail.eurovox.fr>
Jean-Arthur Silve <jeanarthur@eurovox.fr> writes:
> I tried to connect with psql -h 127.0.0.1 mydb and it's slow (+/- 5 sec.)
> and psql mydb is fast ( less than 1 sec.) !
> Here is my pg_hba :
> local all trust
> host all 127.0.0.1 255.255.255.255 trust
> host all my_ip 255.255.255.255 trust
Weird. You're using trust in both cases, so there's no reason for
authentication to make any difference.
The only thing I can think of is that something is wrong with DNS name
resolution. Do you have hostname_lookup enabled in postgresql.conf?
Does changing it to the other setting make any difference? (Don't
forget to SIGHUP the postmaster after changing postgresql.conf, else
it won't notice.)
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: <13796.1025536744@sss.pgh.pa.us>
References: <5.1.0.14.0.20020624162309.0407dbd0@mail.eurovox.fr> <001f01c2191d$1677ef60$543c620a@catnet.com.br> <5.1.0.14.0.20020701143750.036a7680@mail.eurovox.fr> <13796.1025536744@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