X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5817414B27FC for ; Tue, 10 Aug 2004 08:11:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35690-04 for ; Tue, 10 Aug 2004 11:10:52 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 0D9C414B281B for ; Tue, 10 Aug 2004 08:10:51 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i7ABAoiG036537 for ; Tue, 10 Aug 2004 11:10:50 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i7AB4AYr034409 for pgsql-admin@postgresql.org; Tue, 10 Aug 2004 11:04:10 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Killing Long running query or user session Date: Tue, 10 Aug 2004 13:03:28 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 19 Message-ID: <4118AB80.5030209@bigfoot.com> References: <065ed569632b300f0b33223972ec4e12@unlimited.ultrafeed.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: David Ecker User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en In-Reply-To: <065ed569632b300f0b33223972ec4e12@unlimited.ultrafeed.com> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/56 X-Sequence-Number: 14451 David Ecker wrote: > How can I kill/stop a long running query or a complete user session using an > superuser account? > > Thx > David Ecker At my knowledge you have to kill SIGTERM the backedn that is managing the connection. Do as super user "select * from pg_stat_activity", look at the procpid that have to be killed and kill it. Regards Gaetano Mendola