From: | Kananda <Kananda(at)stepsoftware(dot)com(dot)br> |
---|---|
To: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>, "pgsql-cluster-hackers(at)postgresql(dot)org" <pgsql-cluster-hackers(at)postgresql(dot)org> |
Subject: | PostgreSQL keepalives help |
Date: | 2010-07-29 20:16:44 |
Message-ID: | 4A704C139DFD804DB74FFB9CC0BE79FC790B5631C3@SBS.step.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
Hy,
I have a system working with the client-server structure and PostgreSQL 8.4.
My problem is that if a client who is editing a record and lose his connection to the server,the TCPIP connection is still considered! So, the record stay allocated for the client in my database.
I need the records are free for edit, in few minutes. Therefore I set the KEEPALIVE configuration in my "postgresql.conf":
tcp_keepalives_idle = 60 # TCP_KEEPIDLE, in seconds;
tcp_keepalives_interval = 60 # TCP_KEEPINTVL, in seconds;
tcp_keepalives_count TCP_KEEPCNT = 5 #;
After making these settings and restart the server, the system continues to function the same way: Just breaks the connection TCPIP after two hours and then deallocates the records in PostgreSQL. I need a efficient and safe way for the PostgreSQL understand that is to break these connections as configured! I need help, urgent!
Thanks,
Kananda S Silveira - Desenvolvedora .NET / Analista de Banco de Dados
STEP SOFTWARE Tecnologia e Projetos LTDA
kananda(at)stepsoftware(dot)com(dot)br<mailto:kananda(at)stepsoftware(dot)com(dot)br> / +55(48)8417-8121
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2010-07-30 00:02:14 | Re: [GENERAL] PostgreSQL keepalives help |
Previous Message | Bryan Payne | 2010-07-29 14:00:00 | Autovacuum missing tables |
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2010-07-29 20:35:41 | Re: Which CMS/Ecommerce/Shopping cart ? |
Previous Message | Lee Hachadoorian | 2010-07-29 20:13:44 | Re: How to get geometry enabled Tables form Postgresql/postgis |