Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4C505B5DC23 for ; Tue, 30 Aug 2011 15:33:32 -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 98429-01 for ; Tue, 30 Aug 2011 18:33:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og106.obsmtp.com (exprod7og106.obsmtp.com [64.18.2.165]) by mail.postgresql.org (Postfix) with ESMTP id 2292BB5DBF9 for ; Tue, 30 Aug 2011 15:33:23 -0300 (ADT) Received: from mail-fx0-f52.google.com ([209.85.161.52]) (using TLSv1) by exprod7ob106.postini.com ([64.18.6.12]) with SMTP ID DSNKTl0s8r8JkyL/YCDRRh3eBAmTycXuDAEo@postini.com; Tue, 30 Aug 2011 11:33:24 PDT Received: by fxd18 with SMTP id 18so9414107fxd.39 for ; Tue, 30 Aug 2011 11:33:21 -0700 (PDT) Received: by 10.223.5.209 with SMTP id 17mr1816992faw.109.1314729201158; Tue, 30 Aug 2011 11:33:21 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id u18sm2487235fah.17.2011.08.30.11.33.19 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Aug 2011 11:33:20 -0700 (PDT) Message-ID: <4E5D2CED.3030803@enterprisedb.com> Date: Tue, 30 Aug 2011 21:33:17 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.20) Gecko/20110820 Icedove/3.1.12 MIME-Version: 1.0 To: Bhavesh Dangi CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6187: Select query stuck References: <201108301128.p7UBSn5K098487@wwwmaster.postgresql.org> In-Reply-To: <201108301128.p7UBSn5K098487@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/195 X-Sequence-Number: 31007 On 30.08.2011 14:28, Bhavesh Dangi wrote: > PostgreSQL version: PostgreSQL8.0.1 That version is over 6 years old. PostgreSQL 8.0 major version is no longer supported, see http://wiki.postgresql.org/wiki/PostgreSQL_Release_Support_Policy. Even if it was, the latest (and last) minor release from the 8.0 series was 8.0.26, and there was a lot of important bug-fixes between 8.0.1 and that. > Here the problem is SELECT query takes a lot of time(in days) to return a > result than expected time and sometimes it stop to responding. Its totally > hang. We are suffering from last 1 years by having this issue. If it will > happen then we finding that query from pg_stat_activity and cancel it but > that is not a solution of problem. > We also found that almost SELECT queries are stuck. We are also continuous > performing veccumdb before 2 billion transactions. That's unlikely a bug. See http://wiki.postgresql.org/wiki/SlowQueryQuestions. But upgrading is the first thing you need to do. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com