From: John R Pierce <pierce@hogranch.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6571: Postgres Kills 'Select 1' query randomly on hot standby databases
Date: Tue, 03 Apr 2012 09:50:38 -0700
Message-ID: <4F7B2A5E.8060004@hogranch.com> (raw)
In-Reply-To: <9729.1333471212@sss.pgh.pa.us>
References: <E1SEqb9-0004Ou-Rl@wrigleys.postgresql.org>
<4F7A9D87.9060708@enterprisedb.com>
<4F7B2050.9000507@experts-exchange.com>
<9729.1333471212@sss.pgh.pa.us>
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.
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
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: pierce@hogranch.com
Subject: Re: BUG #6571: Postgres Kills 'Select 1' query randomly on hot standby databases
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>
* 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