pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jie Liang <jie@stbernard.com>
To: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 'admin-sql@postgresql.org' <admin-sql@postgresql.org>
Cc: pgsql-sql@postgresql.org
Subject: dead session terminate
Date: Fri, 29 Mar 2002 14:08:04 -0800
Message-ID: <7C760DAA511DC74B99E7D22189F786F1906DE2@MAIL01.stbernard.com> (raw)

I don't how to put this question in a right way:

I have a web application client to communicate with postgreSQL-7.1.3, in the
case
the application get crash, which sometime happens.
The GUI of my application is disappear, I check my backend process, the
connection
which was done by my application is still there, is there a programatic way,
I can
cleanup those dead sessions, does postgreSQL have a way to terminate those
dead
sessions by timeout?
My current solution is to use 'kill pid' under FreeBSD4.3, I don't think
it's
a good solution.
The side effect of exiting those dead session is to keep my user waiting,
I don't know why, but it does, I think it's wierd.


Thanks.


Jie Liang 
Software Engineer 
St. Bernard Software 
16882 W. Bernardo Dr. 
San Diego, CA 92127 
Tel: 858-524-2134 
Fax:858-676-2228 
jie@stbernard.com 



Message-ID: <7C760DAA511DC74B99E7D22189F786F1906DE2@MAIL01.stbernard.com>
Permalink:  ../7C760DAA511DC74B99E7D22189F786F1906DE2@MAIL01.stbernard.com/
Also on:    postgresql.org/message-id/7C760DAA511DC74B99E7D22189F786F1906DE2@MAIL01.stbernard.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jie@stbernard.com, pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, admin-sql@postgresql.org
  Subject: Re: dead session terminate
  In-Reply-To: <7C760DAA511DC74B99E7D22189F786F1906DE2@MAIL01.stbernard.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox