Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta30f-0005Lo-Gm for pgsql-general@postgresql.org; Sun, 18 Nov 2012 11:25:57 +0000 Received: from outmail149080.authsmtp.com ([62.13.149.80]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ta30b-00043I-A7 for pgsql-general@postgresql.org; Sun, 18 Nov 2012 11:25:56 +0000 Received: from punt14.authsmtp.com (punt14.authsmtp.com [62.13.128.228]) by punt10.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id qAIBPoHE098506 for ; Sun, 18 Nov 2012 11:25:50 GMT Received: from mail-c233.authsmtp.com (mail-c233.authsmtp.com [62.13.128.233]) by punt14.authsmtp.com (8.14.2/8.14.2/) with ESMTP id qAIBPokm013698; Sun, 18 Nov 2012 11:25:50 GMT Received: from ayaki.localdomain (124-148-90-153.dyn.iinet.net.au [124.148.90.153]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id qAIBPhu1070396 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 18 Nov 2012 11:25:48 GMT Message-ID: <50A8C5B5.5080108@2ndQuadrant.com> Date: Sun, 18 Nov 2012 19:25:41 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 MIME-Version: 1.0 To: Harry CC: pgsql-general@postgresql.org Subject: Re: PG_TERMINATE_BACKEND not working. References: <1353047648804-5732379.post@n5.nabble.com> In-Reply-To: <1353047648804-5732379.post@n5.nabble.com> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Server-Quench: b447f27a-3172-11e2-a49c-0025907707a1 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZeVg0b BQteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaQ1bY1ZH HGQLWlZEUVx7W2Z/ bwMfbAdZfEtKVxtj UFZIR1FNFgBqBAMA SF9vK2sSL0BHeHlw Zk9kEHNSVEU0J0J5 RRhWEjwbZmZnan0e URVaalJQeVBXfh9H b1l/U3QNZjQGKBg1 TUcAEB0XEA92DBEd ei46EX8oZGctNwIR cDorNhYCO2FNQSIv ZwMhMF0dGklXWgAA X-Authentic-SMTP: 61633235383639.1021:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201211/558 X-Sequence-Number: 192400 On 11/16/2012 02:34 PM, Harry wrote: > I am facing problem i.e. connections after execution completed are residing > in pg_stat_activity and pg_stat_database. > but when i am trying to kill them manually using pg_terminate_backend (All > IDLE connections are getting killed but, others like declare, select etc.) > are not getting killed getting result false. > Kindly help to resolve this issue. More detail is needed. Pg version? OS and version? Exact command output? What the queries that're not terminated are doing? Why you're terminating them / what problem you're trying to solve? -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services