SLOW Remote Connection to PostgreSQL Database

From: Matt White <whiteqt(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: SLOW Remote Connection to PostgreSQL Database
Date: 2007-10-03 15:39:59
Message-ID: 1191425999.460703.36320@g4g2000hsf.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I am running a Rails app on server1 that connects to dbserver where
the database is. There is another server, server2, that connects to
dbserver quickly and returns quickly no matter how high dbserver's
load is. Doing "psql -h dbserver.domain.com database username" from
server1 times out every time. The same command from server2 returns
quickly. dbserver is located in a remote location but server1 and
server2 are in the same building using the same internet connection.
Requests directly to server1 return quickly as well. What do I need to
look at to make it move quickly? Thanks!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jerry Sievers 2007-10-03 15:47:26 Easier string concat in PL funcs?
Previous Message Erik Jones 2007-10-03 15:13:26 Re: pg_cancel_backend() does not work with buzz queries