Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 99C111337B5C for ; Fri, 1 Oct 2010 16:03:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 46366-02 for ; Fri, 1 Oct 2010 19:03:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by mail.postgresql.org (Postfix) with ESMTP id 419D6133655C for ; Fri, 1 Oct 2010 16:03:42 -0300 (ADT) Received: from [192.168.1.6] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LwGC6-1OgTax3TAs-017w01; Fri, 01 Oct 2010 21:03:38 +0200 Message-ID: <4CA63088.8040808@2ndquadrant.com> Date: Fri, 01 Oct 2010 15:03:36 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: "Little, Douglas" CC: Kevin Grittner , "pgsql-admin@postgresql.org" Subject: Re: how to PG close session References: <8585BA53443004458E0BAA6134C5A7FB19520849@EGEXCMB01.oww.root.lcl> <4CA5A35502000025000362B6@gw.wicourts.gov> <8585BA53443004458E0BAA6134C5A7FB19520873@EGEXCMB01.oww.root.lcl> <4CA5A8E402000025000362C8@gw.wicourts.gov> <8585BA53443004458E0BAA6134C5A7FB1952098A@EGEXCMB01.oww.root.lcl> In-Reply-To: <8585BA53443004458E0BAA6134C5A7FB1952098A@EGEXCMB01.oww.root.lcl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:AujfKPSRobKrqjGcOuLIaCsJPADkzB++Ra0JzBdxL0l W2ji+manPBT5Z8fRWkm2hswP39jnHngwLd+2dBgfSgljfSIhUd l/PhoxRbR2heOxhzOuKeUU0CeC045zgamovCK2VnEu3arF91ys pj1BwBSRo6SIQS301r4DAcAcRu3Yi1tR7U07/X0tI6htCPDW84 DPFo20bbQ3313BksYmeR0nH5PtjoopaGAHOoACPNMI= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/14 X-Sequence-Number: 35755 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