pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Matzinger <amatzinger@experts-exchange.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6571: Postgres Kills 'Select 1' query randomly on hot standby databases
Date: Thu, 05 Apr 2012 09:38:04 -0700
Message-ID: <4F7DCA6C.5080806@experts-exchange.com> (raw)
In-Reply-To: <4F7B2A5E.8060004@hogranch.com>
References: <E1SEqb9-0004Ou-Rl@wrigleys.postgresql.org>
	<4F7A9D87.9060708@enterprisedb.com>
	<4F7B2050.9000507@experts-exchange.com>
	<9729.1333471212@sss.pgh.pa.us>
	<4F7B2A5E.8060004@hogranch.com>

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<amatzinger@experts-exchange.com>  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.
>
>
>



view thread (7+ messages)

Message-ID: <4F7DCA6C.5080806@experts-exchange.com>
Permalink:  ../4F7DCA6C.5080806@experts-exchange.com/
Also on:    postgresql.org/message-id/4F7DCA6C.5080806@experts-exchange.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: amatzinger@experts-exchange.com
  Subject: Re: BUG #6571: Postgres Kills 'Select 1' query randomly on hot standby databases
  In-Reply-To: <4F7DCA6C.5080806@experts-exchange.com>
  References: <E1SEqb9-0004Ou-Rl@wrigleys.postgresql.org> <4F7A9D87.9060708@enterprisedb.com> <4F7B2050.9000507@experts-exchange.com> <9729.1333471212@sss.pgh.pa.us> <4F7B2A5E.8060004@hogranch.com> <4F7DCA6C.5080806@experts-exchange.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox