X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id 9605E11F6CA2 for ; Fri, 14 Apr 2006 12:45:21 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: -0.386 X-Spam-Level: X-Spam-Status: No, score=-0.386 required=5 tests=[AWL=-1.603, BAYES_00=-2.599, SPF_HELO_SOFTFAIL=2.432, SPF_SOFTFAIL=1.384] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id lCeKcSdcsqYw for ; Fri, 14 Apr 2006 12:44:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 5DFDF11F6B14 for ; Fri, 14 Apr 2006 12:44:58 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k3EFiuw20847; Fri, 14 Apr 2006 11:44:56 -0400 (EDT) From: Bruce Momjian Message-Id: <200604141544.k3EFiuw20847@candle.pha.pa.us> Subject: Re: Proposed doc-patch: Identifying the Current WAL file In-Reply-To: <443E832D.30405@archonet.com> To: Richard Huxton Date: Fri, 14 Apr 2006 11:44:56 -0400 (EDT) CC: pgsql-docs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200604/6 X-Sequence-Number: 3505 Richard Huxton wrote: > Reading Tom's posting here: > http://archives.postgresql.org/pgsql-general/2006-04/msg00499.php > > I just realised we don't seem to mention this in the docs anywhere. I > propose adding a short paragraph to 23.3.1 > http://www.postgresql.org/docs/8.1/static/backup-online.html#BACKUP-ONLINE-CAVEATS > > After "Except in the case of retrying a failure, it will be called only > once for any given file name." > > To identify the current, partially-filled WAL segment, sort first by > mtime and second by file name. That is, take the latest mtime among the > properly-named files, breaking ties by taking the higher filename. I am confused by this. Why do both mtime and file name need to be checked? -- Bruce Momjian http://candle.pha.pa.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +