Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 374D62E0030 for ; Thu, 5 Jun 2008 23:21:35 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66184-03 for ; Thu, 5 Jun 2008 23:21:24 -0300 (ADT) X-Greylist: delayed 00:10:26.385988 by SQLgrey-1.7.6 Received: from outbound.icp-qv1-irony-out2.iinet.net.au (outbound.icp-qv1-irony-out2.iinet.net.au [203.59.1.107]) by developer.postgresql.org (Postfix) with ESMTP id 8C5612E002D for ; Thu, 5 Jun 2008 23:21:29 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAFAK44SEh8q4K6/2dsb2JhbACSS54rAw X-IronPort-AV: E=Sophos;i="4.27,598,1204470000"; d="scan'208";a="326131928" Received: from unknown (HELO mail) ([124.171.130.186]) by outbound.icp-qv1-irony-out2.iinet.net.au with ESMTP; 06 Jun 2008 10:10:57 +0800 Received: by mail (Postfix, from userid 33) id 0C2272D81C7; Fri, 6 Jun 2008 12:06:34 +1000 (EST) To: pgsql-admin@postgresql.org Subject: =?UTF-8?Q?archive=5Ftimeout=20-=20Is=20it=20working=3F=3F?= MIME-Version: 1.0 Date: Fri, 06 Jun 2008 12:06:34 +1000 From: Steve Kecskes X-Priority: 5 (Lowest) Message-ID: X-Sender: steve@outtalimits.com.au User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/47 X-Sequence-Number: 29385 Hi, I am currently setting up a warm standby configuration with Postgres 8.3. Everything seems to be fine but the archive timeout doesnt seem to be working as expected. The setup is currently in a test environment and I have set the archive_timeout to be 60sec. The WAL logs however only seem to be written out when the checkpoint_timeout expires. There is currently very small amount of database activity in the test environment. But I would have expected a WAL log be written every 60sec with maybe 1MB of data. This is what I have set up for testing purposes: # - Checkpoints - checkpoint_segments = 3 # in logfile segments, min 1, 16MB each checkpoint_timeout = 5min # range 30s-1h #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0 #checkpoint_warning = 30s # 0 is off # - Archiving - archive_mode = on archive_command = 'cp -i "%p" /pgbackup/"%f"