Re: Slow connection to the database - Mailing list pgsql-general

From Tom Lane
Subject Re: Slow connection to the database
Date
Msg-id 23152.1127591385@sss.pgh.pa.us
Whole thread Raw
In response to Re: Slow connection to the database  (Poul Møller Hansen <freebsd@pbnet.dk>)
Responses Re: Slow connection to the database
List pgsql-general
=?ISO-8859-1?Q?Poul_M=F8ller_Hansen?= <freebsd@pbnet.dk> writes:
>> Is it possible that you've got DNS timeouts happening or something
>> like that?  Though I don't think PG does reverse DNS lookups,
>> especially not by default.

> DNS was also my first thought, but the connection isn't logged so why do
> reverse lookup and with my clients ip address in /etc/hosts is same.

How do you know the delay isn't in the client's lookup of the server?

I concur with Doug's suggestion that you need to trace the connection
process to find out what's slow.  Personally I'd try strace (or local
equivalent) first; the odds are that you can spot the issue at the
kernel-call level.  You'd probably need to trace both the client and
server sides of the operation.

            regards, tom lane

pgsql-general by date:

Previous
From: Poul Møller Hansen
Date:
Subject: Re: Slow connection to the database
Next
From: Ron Mayer
Date:
Subject: Re: Backend crash with user defined aggregate