Re: Problems with the connection to a Remote Database. - Mailing list pgsql-admin

From Tom Lane
Subject Re: Problems with the connection to a Remote Database.
Date
Msg-id 2376.1088002783@sss.pgh.pa.us
Whole thread Raw
In response to Problems with the connection to a Remote Database.  (Aryan Ariel Rodriguez Chalas <wimogan@yahoo.com>)
List pgsql-admin
=?iso-8859-1?q?Aryan=20Ariel=20Rodriguez=20Chalas?= <wimogan@yahoo.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

pgsql-admin by date:

Previous
From: "V i s h a l Kashyap @ [Sai Hertz And Control Systems]"
Date:
Subject: Re: Backup / Restore
Next
From: Werner Bohl
Date:
Subject: Non existent user error on restore