Skip site navigation (1) Skip section navigation (2)

Re: Establishing remote connections is slow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mindaugas Žakšauskas <mindas(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Establishing remote connections is slow
Date: 2012-01-17 15:41:12
Message-ID: 16644.1326814872@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
=?UTF-8?Q?Mindaugas_=C5=BDak=C5=A1auskas?= <mindas(at)gmail(dot)com> writes:
>> What about "psql -h localhost", ie physically local connection but
>> via TCP not unix socket?

> user(at)dbserver> psql -h 127.0.0.1 -p5432 -U user -W db

> This works fast. But

> user(at)dbserver> psql -h <IP> -p5432 -U user -W db

> (where <IP> is the multipath interface)

> This is slow! So it is definitely something network-related or
> something how PostgreSQL deals with multipath interface.

Hm.  AFAIR postgres doesn't know anything particular about multipath
interfaces --- it just listens where you tell it to.  So I'm thinking
this is a system-level issue.  It still seems like it could be DNS
lookup related though.  Do you have log_hostname turned on, and if so
does turning it off make a difference?

			regards, tom lane

In response to

Responses

pgsql-admin by date

Next:From: Rafael DomicianoDate: 2012-01-17 15:41:34
Subject: Post Removal
Previous:From: Mindaugas ŽakšauskasDate: 2012-01-17 15:31:23
Subject: Re: Establishing remote connections is slow

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group