Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 71B31DE314D for ; Tue, 3 Apr 2012 13:40:31 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SF6mS-0003eS-Er for pgsql-bugs@postgresql.org; Tue, 03 Apr 2012 16:40:30 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q33GeCtc009730; Tue, 3 Apr 2012 12:40:12 -0400 (EDT) To: Alex Matzinger cc: Heikki Linnakangas , pgsql-bugs@postgresql.org Subject: Re: BUG #6571: Postgres Kills 'Select 1' query randomly on hot standby databases In-reply-to: <4F7B2050.9000507@experts-exchange.com> References: <4F7A9D87.9060708@enterprisedb.com> <4F7B2050.9000507@experts-exchange.com> Comments: In-reply-to Alex Matzinger message dated "Tue, 03 Apr 2012 09:07:44 -0700" Date: Tue, 03 Apr 2012 12:40:12 -0400 Message-ID: <9729.1333471212@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/11 X-Sequence-Number: 32762 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. regards, tom lane