Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 0035912FE952 for ; Thu, 5 Apr 2012 13:38:07 -0300 (ADT) Received: from mail.pub.dw.redsrci.com ([72.29.183.251] helo=mail.dw.redsrci.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SFphE-0000vm-AJ for pgsql-bugs@postgresql.org; Thu, 05 Apr 2012 16:38:06 +0000 Received: from mail.dw.redsrci.com (localhost [127.0.0.1]) by mail.dw.redsrci.com (Postfix) with ESMTP id 4A45A7019CD for ; Thu, 5 Apr 2012 09:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= experts-exchange.com; h=content-transfer-encoding:content-type :content-type:in-reply-to:references:subject:subject :mime-version:user-agent:from:from:date:date:message-id:received :received; s=ee; t=1333643869; x=1335458269; bh=4LSFMHLn9FU3VBiM dIaXcq6pPj+j8euTFv6ATfDhXgY=; b=f7POdWAFyEa5t4N/hXpBER5x2ijjoNY5 ZYPw5gwc8yuWoGWU0vXWdq4ugXfPhvJ5zNzq0rk48pxiQm2jMZTN2U7JZXcV+eLy wZ4woAE+y8UjoWCN6xzDo6uQ3EG1h7szfaX4Vnh/rKCM4iUhJQ3IMfG+TBahNutw uu3FqV1CuwU= X-Virus-Scanned: amavisd-new at experts-exchange.com Received: from mail.dw.redsrci.com ([127.0.0.1]) by mail.dw.redsrci.com (mail.dw.redsrci.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W6eIEOGiZoD9 for ; Thu, 5 Apr 2012 09:37:49 -0700 (PDT) Received: from [192.168.103.146] (unknown [192.168.103.146]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: amatzinger) by mail.dw.redsrci.com (Postfix) with ESMTPSA id 26484701762 for ; Thu, 5 Apr 2012 09:37:49 -0700 (PDT) Message-ID: <4F7DCA6C.5080806@experts-exchange.com> Date: Thu, 05 Apr 2012 09:38:04 -0700 From: Alex Matzinger User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0 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> <4F7B2A5E.8060004@hogranch.com> In-Reply-To: <4F7B2A5E.8060004@hogranch.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) X-Archive-Number: 201204/23 X-Sequence-Number: 32774 Dropping the BEGIN has cleared up the issue. Thank you. On 4/3/2012 9:50 AM, John R Pierce wrote: > 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. > > >