PostgreSQL keepalives help
am 29.07.2010 22:16:44 von Kananda --_000_4A704C139DFD804DB74FFB9CC0BE79FC790B5631C3SBSsteploca l_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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 connect=
ion 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 K=
EEPALIVE configuration in my "postgresql.conf":
tcp_keepalives_idle =3D 60 # TCP_KEEPIDLE, in seconds;
tcp_keepalives_interval =3D 60 # TCP_KEEPINTVL, in seconds;
tcp_keepalives_count TCP_KEEPCNT =3D 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 an=
d then deallocates the records in PostgreSQL. I need a efficient and safe w=
ay for the PostgreSQL understand that is to break these connections as conf=
igured! I need help, urgent!
Thanks,
Kananda S Silveira - Desenvolvedora .NET / Analista de Banco de Dados
STEP SOFTWARE Tecnologia e Projetos LTDA
kananda@stepsoftware.com.br
17-8121
--_000_4A704C139DFD804DB74FFB9CC0BE79FC790B5631C3SBSsteploca l_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
1">
ith the client-server structure and PostgreSQL 8.4.
My problem is that if a client who is editing a record and lose his connect=
ion 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 K=
EEPALIVE configuration in my "postgresql.conf":
0 # TCP_KEEPIDLE, in seconds;
tcp_keepalives_interval =3D 60 # TCP_KEEPINTVL, in seconds;
tcp_keepalives_count TCP_KEEPCNT =3D 5 #;
gs and restart the server, the system continues to function the same way: J=
ust breaks the connection TCPIP after two hours and then deallocates the re=
cords in PostgreSQL. I need a efficient
and safe way for the PostgreSQL understand that is to break these connecti=
ons as configured! I need help, urgent!
Desenvolvedora .NET=
/ Analista de Banco de Dados
/strong>
--_000_4A704C139DFD804DB74FFB9CC0BE79FC790B5631C3SBSsteploca l_--