Re: Problems with the connection to a Remote Database.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Aryan Ariel Rodriguez Chalas <wimogan(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Problems with the connection to a Remote Database.
Date: 2004-06-23 14:59:43
Message-ID: 2376.1088002783@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

=?iso-8859-1?q?Aryan=20Ariel=20Rodriguez=20Chalas?= <wimogan(at)yahoo(dot)com> writes:
> Hi every body, my best regards for every one who reads
> this message. I'm writing this message in order to get
> some help with a problem I'm having with the
> connection I make to a remote Database using
> PostgreSQL on a Linux Operating System. The matter is
> that when I make my connection every query I make
> works pretty well during a few minutes after making
> the connection, but if I leave the connection
> established and go doing something, when I come back
> to continue making queries, after more or less 10
> minutes, the connection seems to be loosen and it says
> that I have to reset the connection to continue
> working.

Sounds like you have a firewall with a very short activity timeout
between you and the remote system. You need to fix the firewall.
(The timeout is likely associated with discarding the NAT mapping
for your connection; you may be able to adjust it in the firewall's
NAT settings.)

Or, if you can't do that, program your application to send dummy
queries every so often ...

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Werner Bohl 2004-06-23 15:03:29 Non existent user error on restore
Previous Message V i s h a l Kashyap @ [Sai Hertz And Control Systems] 2004-06-23 13:27:57 Re: Backup / Restore