Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFqDR-0001oJ-Vn for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 19:20:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WFqDR-0000tT-Fw for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 19:20:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFqDQ-0000tM-Tq for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 19:20:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFqDO-0000Mx-4L for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 19:20:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s1IJKKt0009251; Tue, 18 Feb 2014 14:20:20 -0500 From: Tom Lane To: Clemens Eisserer cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9161: wal_writer_delay is limited to 10s In-reply-to: References: <20140214225026.GB11943@awork2.anarazel.de> <20140217215329.GH7161@awork2.anarazel.de> Comments: In-reply-to Clemens Eisserer message dated "Tue, 18 Feb 2014 20:03:39 +0100" Date: Tue, 18 Feb 2014 14:20:20 -0500 Message-ID: <9250.1392751220@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 Clemens Eisserer writes: > Thanks a lot for the in-depth information. > Is the 8KB boundary configureable at compile time? There is a configure option for XLOG_BLCKSZ, but it won't go beyond 64K which is probably not enough to fix your problem. (I'm not sure offhand if there are technical reasons for 64K in particular as the limit, but in any case I suspect making it really large would create performance issues of its own.) I think what you'd really want is to tweak the walwriter logic so that it avoids writing individual blocks and instead waits for wal_buffers to be, say, half full before writing. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs