Re: how to PG close session

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Douglas Little" <DOUGLAS(dot)LITTLE(at)orbitz(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: how to PG close session
Date: 2010-10-01 14:01:09
Message-ID: 4CA5A35502000025000362B6@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Little, Douglas" <DOUGLAS(dot)LITTLE(at)orbitz(dot)com> wrote:

> We have a number of long running java/jdbc applications that wait
> for events and then extract data from PG.
> During the time the apps are running, The app is maintaining
> active connections to PG.
> Is there a way that we can close/terminate the pg session so that
> the connections don't consume resource unnecessarily.

A relatively small number of such connections shouldn't be a
problem. It's hard to make concrete suggestions on so little
information, but I would point out that you can write and install
your own functions which can do just about anything you want,
including making network connections. So, hypothetically, you could
register to receive certain information on a certain event in some
"requests" table, with a URL to signal when the event occurs, and
disconnect. Some trigger could recognize that an event has
occurred, and call a function to signal the given URL.

Just about anything is possible, it's just a Simple Matter Of
Programming....

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Little, Douglas 2010-10-01 14:12:57 Re: how to PG close session
Previous Message Little, Douglas 2010-10-01 13:45:00 how to PG close session