From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Daniel Farina <daniel@heroku.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6170: hot standby wedging on full-WAL disk
Date: Thu, 25 Aug 2011 20:16:45 +0300
Message-ID: <4E56837D.5010706@enterprisedb.com> (raw)
In-Reply-To: <CA+Tgmoa_gycDVqH088gqYrsUF=gO_x-Df3hgvTS1Gxm2orKJnA@mail.gmail.com>
References: <201108200039.p7K0dwle083531@wwwmaster.postgresql.org>
<4E51FDD9.6050403@enterprisedb.com>
<CA+Tgmoa_gycDVqH088gqYrsUF=gO_x-Df3hgvTS1Gxm2orKJnA@mail.gmail.com>
On 25.08.2011 19:11, Robert Haas wrote:
> On Mon, Aug 22, 2011 at 2:57 AM, Heikki Linnakangas
> <heikki.linnakangas@enterprisedb.com> wrote:
>> So the problem is that walreceiver merrily writes so much future WAL that it
>> runs out of disk space? A limit on the maximum number of future WAL files to
>> stream ahead would fix that, but I can't get very excited about it. Usually
>> you do want to stream as much ahead as you can, to ensure that the WAL is
>> safely on disk on the standby, in case the master dies. So the limit would
>> need to be configurable.
>
> It seems like perhaps what we really need is a way to make replaying
> WAL (and getting rid of now-unneeded segments) to take priority over
> getting new ones.
With the defaults we start to kill queries after a while that get in the
way of WAL replay. Daniel had specifically disabled that. Of course,
even with the query-killer disabled, it's possible for the WAL replay to
fall so badly behind that you fill the disk, so a backstop might be
useful anyway, although that seems a lot less likely in practice and if
your standby can't keep up you're in trouble anyway.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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: heikki.linnakangas@enterprisedb.com, robertmhaas@gmail.com, daniel@heroku.com
Subject: Re: BUG #6170: hot standby wedging on full-WAL disk
In-Reply-To: <4E56837D.5010706@enterprisedb.com>
References: <201108200039.p7K0dwle083531@wwwmaster.postgresql.org> <4E51FDD9.6050403@enterprisedb.com> <CA+Tgmoa_gycDVqH088gqYrsUF=gO_x-Df3hgvTS1Gxm2orKJnA@mail.gmail.com> <4E56837D.5010706@enterprisedb.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