Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C2F19DE314D for ; Tue, 3 Apr 2012 13:51:14 -0300 (ADT) Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SF6wp-0003oK-Cj for pgsql-bugs@postgresql.org; Tue, 03 Apr 2012 16:51:13 +0000 Received: from [127.0.0.1] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id q33Goh901354 for ; Tue, 3 Apr 2012 09:50:43 -0700 Message-ID: <4F7B2A5E.8060004@hogranch.com> Date: Tue, 03 Apr 2012 09:50:38 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #6571: Postgres Kills 'Select 1' query randomly on hot standby databases References: <4F7A9D87.9060708@enterprisedb.com> <4F7B2050.9000507@experts-exchange.com> <9729.1333471212@sss.pgh.pa.us> In-Reply-To: <9729.1333471212@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/13 X-Sequence-Number: 32764 On 04/03/12 9:40 AM, Tom Lane wrote: > Alex Matzinger writes: >> > The connection that is executing the SELECT 1 are generally open for 1-5 >> > hours before they are killed. The specific connection only executes >> > SELECT 1. The transaction is simply BEGIN, and then SELECT 1's, no >> > other query is executed. > Lose the "BEGIN" and it will probably work more nicely. indeed,a 1-5 hour long transaction means VACUUM can't clean up anything newer than the oldest active transaction, and thats not per database, thats cluster-wide. -- john r pierce N 37, W 122 santa cruz ca mid-left coast