Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 102579FB332 for ; Fri, 29 Sep 2006 11:29:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 76564-04 for ; Fri, 29 Sep 2006 14:29:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 842C39FA430 for ; Fri, 29 Sep 2006 11:29:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k8TETMq3015271; Fri, 29 Sep 2006 10:29:22 -0400 (EDT) To: Simon Riggs cc: cedric@dreamgnu.com, pgsql-performance@postgresql.org Subject: Re: archive wal's failure and load increase. In-reply-to: <1159527513.2767.296.camel@holly> References: <451C2572.20800@dreamgnu.com> <1159527513.2767.296.camel@holly> Comments: In-reply-to Simon Riggs message dated "Fri, 29 Sep 2006 11:58:33 +0100" Date: Fri, 29 Sep 2006 10:29:22 -0400 Message-ID: <15270.1159540162@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/428 X-Sequence-Number: 21114 Simon Riggs writes: > We discussed putting PreallocXlogFiles() in bgwriter once before, but I > think last time we discussed that idea it was rejected, IIRC. We already do that: it's called a checkpoint. If the rate of WAL generation was more than checkpoint_segments per checkpoint_timeout, then indeed there would be a problem with foreground processes having to manufacture WAL segment files for themselves, but it would be a bursty thing (ie, problem goes away after a checkpoint, then comes back). It's a good thought but I don't think the theory holds water for explaining Cedric's problem, unless there was *also* some effect preventing checkpoints from completing ... which would be a much more serious problem than the archiver failing. regards, tom lane