X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E9B19D1B380 for ; Thu, 22 Jul 2004 23:01: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 57610-07 for ; Fri, 23 Jul 2004 02:01:40 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 15182D1B377 for ; Thu, 22 Jul 2004 23:01:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i6N21OVi014501; Thu, 22 Jul 2004 22:01:24 -0400 (EDT) To: Simon Riggs Cc: Mark Kirkwood , pgsql-admin@postgresql.org Subject: Re: [HACKERS] Point in Time Recovery In-reply-to: <1090540113.3057.17.camel@localhost.localdomain> References: <200407132242.i6DMgg612564@candle.pha.pa.us> <1089760416.17493.3327.camel@stromboli> <40F49AE9.2060805@familyhealth.com.au> <1089789682.17493.3890.camel@stromboli> <40FF1D88.30404@coretech.co.nz> <12173.1090527593@sss.pgh.pa.us> <1090540113.3057.17.camel@localhost.localdomain> Comments: In-reply-to Simon Riggs message dated "Fri, 23 Jul 2004 00:48:34 +0100" Date: Thu, 22 Jul 2004 22:01:24 -0400 Message-ID: <14500.1090548084@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/262 X-Sequence-Number: 14330 Simon Riggs writes: > On Thu, 2004-07-22 at 21:19, Tom Lane wrote: >> Yeah, I think you are right: presence of recovery.conf should force a >> WAL scan even if pg_control claims it's shut down. Fix committed. > This *should* be possible but I haven't tested it. I did. It's really not risky. The fact that the code doesn't look beyond the checkpoint record when things seem to be kosher is just a speed optimization (and probably a rather pointless one...) We have got to be able to detect the end of WAL in any case, so we'd just find there are no more records and stop. regards, tom lane