Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFrep-00077P-CG for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 20:52:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WFreo-0001R6-Ql for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 20:52:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFren-0001PZ-78 for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 20:52:45 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFrek-0002KM-6L for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 20:52:44 +0000 Received: from intern.anarazel.de (unknown [109.174.139.135]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 1E0194E8003; Tue, 18 Feb 2014 21:52:41 +0100 (CET) Date: Tue, 18 Feb 2014 21:52:37 +0100 From: Andres Freund To: Jeff Janes Cc: Clemens Eisserer , Pg Bugs Subject: Re: BUG #9161: wal_writer_delay is limited to 10s Message-ID: <20140218205237.GC24560@alap3.anarazel.de> References: <20140214225026.GB11943@awork2.anarazel.de> <20140217215329.GH7161@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -1.8 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2014-02-17 14:24:09 -0800, Jeff Janes wrote: > On Mon, Feb 17, 2014 at 1:53 PM, Andres Freund 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