Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id AA590650080 for ; Thu, 7 Aug 2008 11:51:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83505-02 for ; Thu, 7 Aug 2008 11:51:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id C66B8650427 for ; Thu, 7 Aug 2008 11:48:22 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m77Em6NX029482; Thu, 7 Aug 2008 10:48:06 -0400 (EDT) To: Simon Riggs cc: pgsql-hackers Subject: Re: Infrastructure changes for recovery In-reply-to: <1218109459.4549.423.camel@ebony.2ndQuadrant> References: <1218109459.4549.423.camel@ebony.2ndQuadrant> Comments: In-reply-to Simon Riggs message dated "Thu, 07 Aug 2008 12:44:19 +0100" Date: Thu, 07 Aug 2008 10:48:06 -0400 Message-ID: <29481.1218120486@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/290 X-Sequence-Number: 122044 Simon Riggs writes: > I propose to > * have startup process signal postmaster when it starts Redo phase (if > it starts it) Doesn't seem like "starts recovery" is the point at which you can start letting clients into the DB. What you want is to reach a point at which you're sure that the DB is internally consistent, though perhaps not fully synced with the master. In a PITR recovery scenario this would correspond to reaching the minimum safe stop point. In true crash recovery I don't think you can let people in till you're done. regards, tom lane