pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndquadrant.com>
To: Little, Douglas <DOUGLAS.LITTLE@orbitz.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: how to PG close session
Date: Fri, 01 Oct 2010 15:03:36 -0400
Message-ID: <4CA63088.8040808@2ndquadrant.com> (raw)
In-Reply-To: <8585BA53443004458E0BAA6134C5A7FB1952098A@EGEXCMB01.oww.root.lcl>
References: <8585BA53443004458E0BAA6134C5A7FB19520849@EGEXCMB01.oww.root.lcl>
	<4CA5A35502000025000362B6@gw.wicourts.gov>
	<8585BA53443004458E0BAA6134C5A7FB19520873@EGEXCMB01.oww.root.lcl>
	<4CA5A8E402000025000362C8@gw.wicourts.gov>
	<8585BA53443004458E0BAA6134C5A7FB1952098A@EGEXCMB01.oww.root.lcl>

Little, Douglas wrote:
> The only admin function that look close is 
> pg_terminate_backend(pid int)	boolean	Terminate a backend
> I tried it and it couldn't be found.  It is newist.  We're running PG8.2.13/GP3.3.7
>   

Yes, that's an 8.4 function.


> We tried pgpool for awhile,   but I think I'll have a look at the code first.
> I did find in the JDBC doc  connections.close  which should do the trick I suspect.
>   

Does your Java app have an application server like Tomcat in it?  Those 
can be setup to work about as well as a PostgreSQL specific pooler, and 
you get tighter integration with the application itself normally in the 
process.

-- 
Greg Smith, 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD
PostgreSQL Training, Services and Support  www.2ndQuadrant.us
Author, "PostgreSQL 9.0 High Performance"    Pre-ordering at:
https://www.packtpub.com/postgresql-9-0-high-performance/book




view thread (6+ messages)

Message-ID: <4CA63088.8040808@2ndquadrant.com>
Permalink:  ../4CA63088.8040808@2ndquadrant.com/
Also on:    postgresql.org/message-id/4CA63088.8040808@2ndquadrant.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-admin@postgresql.org
  Cc: greg@2ndquadrant.com, DOUGLAS.LITTLE@orbitz.com, Kevin.Grittner@wicourts.gov
  Subject: Re: how to PG close session
  In-Reply-To: <4CA63088.8040808@2ndquadrant.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