Re: Surviving connections after internet problem - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Surviving connections after internet problem
Date
Msg-id A737B7A37273E048B164557ADEF4A58B5397A9BA@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Re: Surviving connections after internet problem  (Durumdara <durumdara@gmail.com>)
List pgsql-general
Durumdara wrote:
>> You can use pg_terminate_backend to kill a database session.
>>
>> Setting the keepalive options in postgresql.conf can make PostgreSQL
>> discover dead connections more quickly.
> 
> The server is licenced, so we can't access the conf file now.
> We will report this to the provider.

You cannot use ALTER SYSTEM from SQL either?

> For that moment could we set these parameters from clients after the connection established?
> 
> For example:
> 
> set param bla = nnn?

Yes, that should work, e.g.:

SET tcp_keepalives_idle = 600;

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: Linux equivalent library for "postgres.lib" from Windows
Next
From: Adrian Klaver
Date:
Subject: Re: Fwd: Creating multiple instances of postresql on Windows environment