Search Postgresql Archives

Re: Slow connection to the database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



=?ISO-8859-1?Q?Poul_M=F8ller_Hansen?= <freebsd@xxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux