X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 85C2AD9AC8 for ; Wed, 28 Sep 2005 14:10:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48403-05 for ; Wed, 28 Sep 2005 17:10:41 +0000 (GMT) Received: from exchange.corp.digonex.com (dsl093-203-229.ind1.dsl.speakeasy.net [66.93.203.229]) by svr1.postgresql.org (Postfix) with ESMTP id 664B5D9AC4 for ; Wed, 28 Sep 2005 14:10:40 -0300 (ADT) Received: from [10.0.1.102] ([10.0.1.102]) by exchange.corp.digonex.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Sep 2005 12:14:39 -0500 Message-ID: <433ACE02.3040208@musicrebellion.com> Date: Wed, 28 Sep 2005 12:08:18 -0500 From: Kris Kiger User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Frost Cc: pgsql-admin@postgresql.org Subject: Re: archive_command References: <20031115132118.V74587@holywar.net> <433AC059.1050300@musicrebellion.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Sep 2005 17:14:39.0274 (UTC) FILETIME=[1BCC78A0:01C5C450] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/307 X-Sequence-Number: 19044 Jeff: I see, that does make a lot of sense ;-). Thanks However, that answer brings me to another question: To begin with an example, lets say we start the server and are writing to wal file X, however postgres has preallocated wal files up to X+7. We assume that archive command will be invoked on wal files as they become full. We don't care about wal files that are greater than X, because they have either been recycled or preallocated, in either case the data has been backed up from a previous archive command or does not yet exist. So, we can assume that all relevant wal logs have been archived, save the current one. My question then is, how do we tell which wal log is X (the one currently being written to)? Jeff Frost wrote: > Kris, > > It is invoked when the WAL file is filled. I believe the server > preallocates 8 or so of them on startup. > > On Wed, 28 Sep 2005, Kris Kiger wrote: > >> set to use rsync copy the wal log from server A to server B. When >> i'm watching the number of wal files on server A I notice sometimes >> there are 3 files that have not been archived, sometimes there are 4, >> and sometimes there are more. So, my question is, when is >> archive_command invoked? > >