From: Andres Freund <andres@2ndquadrant.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Clemens Eisserer <linuxhippy@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #9161: wal_writer_delay is limited to 10s
Date: Tue, 18 Feb 2014 21:52:37 +0100
Message-ID: <20140218205237.GC24560@alap3.anarazel.de> (raw)
In-Reply-To: <CAMkU=1xhBvCesyen_cUC6AjkP-2PS-n0qS93u9jtyOM92QYzMQ@mail.gmail.com>
References: <CAFvQSYRvKYNj8FVMztVLtvBdarz=W1wE7-BRyXpaaxJ+dg_Kjg@mail.gmail.com>
<20140214225026.GB11943@awork2.anarazel.de>
<CAMkU=1xVA5=Ub5Ktx1DYb+oHn-afo=Oae7o+oMr2HYT9aDPHyQ@mail.gmail.com>
<20140217215329.GH7161@awork2.anarazel.de>
<CAMkU=1xhBvCesyen_cUC6AjkP-2PS-n0qS93u9jtyOM92QYzMQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2014-02-17 14:24:09 -0800, Jeff Janes wrote:
> On Mon, Feb 17, 2014 at 1:53 PM, Andres Freund <andres@2ndquadrant.com>wrote:
>
> > On 2014-02-17 13:48:34 -0800, Jeff Janes wrote:
> > > That only happens if an 8 KB boundary has been crossed. Depending on how
> > > big the records are that he is inserting, you can fit a lot of them in 8
> > > KB. If the records are small, or the table us unlogged so only commit
> > > messages get logged, then you could go many multiples of 10s without
> > > triggering a wake up due to crossing an 8 KB boundary.
> >
> > Unless I miss something we wake it up if *either* a 8kb boundary has
> > been crossed *or* if the async lsn hasn't been flushed yet.
> >
>
> I think it is either a 8kb boundary crossed, or the wal_writer is in "deep"
> sleep (i.e. 25 times the ordinary sleep).
Ick. Yes, I forgot that sleeping was defined that way (which is a bad
idea for the majority of cases imo).
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: andres@2ndquadrant.com, jeff.janes@gmail.com, linuxhippy@gmail.com
Subject: Re: BUG #9161: wal_writer_delay is limited to 10s
In-Reply-To: <20140218205237.GC24560@alap3.anarazel.de>
References: <CAFvQSYRvKYNj8FVMztVLtvBdarz=W1wE7-BRyXpaaxJ+dg_Kjg@mail.gmail.com> <20140214225026.GB11943@awork2.anarazel.de> <CAMkU=1xVA5=Ub5Ktx1DYb+oHn-afo=Oae7o+oMr2HYT9aDPHyQ@mail.gmail.com> <20140217215329.GH7161@awork2.anarazel.de> <CAMkU=1xhBvCesyen_cUC6AjkP-2PS-n0qS93u9jtyOM92QYzMQ@mail.gmail.com> <20140218205237.GC24560@alap3.anarazel.de>
* 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