Re: Referencing columns from system tables possible?

From: DeJuan Jackson <djackson(at)speedfc(dot)com>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: Boris Popov <boris(at)procedium(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Referencing columns from system tables possible?
Date: 2003-11-11 23:55:18
Message-ID: 3FB176E6.5010707@speedfc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Why not place the pid of the process into your session and set up a
cronjob to look at pg_listner and delete any pid's from the session file
that have gone away? Only down side is if you recycle pid's really quickly.

Alvaro Herrera wrote:

>On Fri, Nov 07, 2003 at 07:33:47PM -0800, Boris Popov wrote:
>
>Boris,
>
>
>
>>AH> (I don't remember why you rejected the idea of having a cron job to
>>AH> delete entries belonging to expired sessions ...)
>>
>>Reason I'm trying to find a different solution is to avoid
>>implementing application heartbeat that updates the timestamp.
>>
>>
>
>I don't think there's another way because you'd need the "trigger on
>disconnect" or some such that doesn't exist (yet).
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2003-11-12 00:03:44 Re: RHEL
Previous Message Adam Haberlach 2003-11-11 23:03:21 Re: RHEL