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 392E011F6D11 for ; Sat, 15 Apr 2006 15:50:13 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: -2.037 X-Spam-Level: X-Spam-Status: No, score=-2.037 required=5 tests=[AWL=0.564, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id 89eeCM0vCVzr for ; Sat, 15 Apr 2006 15:50:11 -0300 (ADT) 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 8CF1811F6D1A for ; Sat, 15 Apr 2006 15:50:10 -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 k3FIo5MV020682; Sat, 15 Apr 2006 14:50:05 -0400 (EDT) To: Bruce Momjian cc: Jeff Frost , Richard Huxton , pgsql-docs@postgresql.org Subject: Re: Proposed doc-patch: Identifying the Current WAL file In-reply-to: <200604151809.k3FI96M06462@candle.pha.pa.us> References: <200604151809.k3FI96M06462@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Sat, 15 Apr 2006 14:09:06 -0400" Date: Sat, 15 Apr 2006 14:50:05 -0400 Message-ID: <20681.1145127005@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200604/20 X-Sequence-Number: 3519 Bruce Momjian writes: > The point is that the test does not have a > one-second window of showing the wrong answer, meaning I could wait for > 60 seconds, and still see the wrong WAL file at the top. Oh, I see your point: you can lose at most one second's worth of data, but that second could be arbitrarily long ago if it was the latest activity in the database. Yeah, that's a bit unpleasant. So we really do need both parts of the ordering rule, and there seems no way to do that with just 'ls'. I wonder if you could do anything with find(1)'s -newer switch? It seems to be a '>' condition not a '>=' condition, so it'd be pretty awkward ... certainly not a one-liner. I think everyone agrees that adding a SQL function would be a reasonable thing to do, anyway. regards, tom lane