Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 577C9133798E for ; Fri, 22 Apr 2011 21:46:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 16093-06 for ; Sat, 23 Apr 2011 00:45:55 +0000 (UTC) X-Greylist: delayed 00:23:46.898396 by SQLgrey-1.7.6 Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) by mail.postgresql.org (Postfix) with ESMTP id 6EB3F1337B68 for ; Fri, 22 Apr 2011 21:45:54 -0300 (ADT) Received: by pzk9 with SMTP id 9so505315pzk.19 for ; Fri, 22 Apr 2011 17:45:54 -0700 (PDT) Received: by 10.142.149.26 with SMTP id w26mr975691wfd.402.1303518127085; Fri, 22 Apr 2011 17:22:07 -0700 (PDT) Received: from sidon.consistentstate.com (173-164-51-9-colorado.hfc.comcastbusiness.net [173.164.51.9]) by mx.google.com with ESMTPS id j3sm2294616pbb.83.2011.04.22.17.22.05 (version=SSLv3 cipher=OTHER); Fri, 22 Apr 2011 17:22:06 -0700 (PDT) Message-ID: <4DB21BFA.4030800@consistentstate.com> Date: Fri, 22 Apr 2011 18:23:22 -0600 From: Brian Fehrle User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: pgsql-admin@postgresql.org CC: Kevin Kempter Subject: archive_timeout behavior (8.4.6) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201104/215 X-Sequence-Number: 37396 Hi all, We thought we were having issues with our warm standby (postgres 8.4.6), but think we figured it out, however I'd like someone to confirm what we think is true. If a cluster has zero activity whatsoever, but we have archive_timeout set (say to 60 seconds), will it create a WAL file anyways, or knowing there was zero activity does it skip it? We turned it on (temporarily) to force WAL files to go to a newly set up warm standby so we could verify that we have the whole end-to-end process correct, but we didn't have any WAL files transfer to the warm standby. After some trouble shooting, we notice that we do get a WAL file shortly after we insert a single row into a table. The confusion is probably because I remember this same scenario on older versions of 8.4, and watching it generate wal files even with no activity. So long story short, if a cluster has zero activity, and archive_timeout is not set to 0, when it reaches that timeout should it generate a file, or just skip because it would be 100% empty? Thanks in advance, Brian F