Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 87FCF633E2C for ; Fri, 2 Oct 2009 07:43:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 90763-08 for ; Fri, 2 Oct 2009 10:43:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail129159.authsmtp.net (outmail129159.authsmtp.net [62.13.129.159]) by mail.postgresql.org (Postfix) with ESMTP id A0CB4633C60 for ; Fri, 2 Oct 2009 07:43:21 -0300 (ADT) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt3.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n92AhFnR075343; Fri, 2 Oct 2009 11:43:15 +0100 (BST) Received: from [192.168.0.5] (88-110-190-77.dynamic.dsl.as9105.com [88.110.190.77]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n92AhEoj017173; Fri, 2 Oct 2009 11:43:14 +0100 (BST) Subject: Re: Hot Standby on git From: Simon Riggs To: Heikki Linnakangas Cc: pgsql-hackers In-Reply-To: <4AC5B92A.7090508@enterprisedb.com> References: <1253958559.4449.833.camel@ebony.2ndQuadrant> <4AC2FBB9.7060304@enterprisedb.com> <1254408330.17864.233.camel@ebony.2ndQuadrant> <4AC4CF18.50309@enterprisedb.com> <1254413624.17864.243.camel@ebony.2ndQuadrant> <4AC5A60F.5050503@enterprisedb.com> <1254468966.17864.301.camel@ebony.2ndQuadrant> <4AC5AF36.3020900@enterprisedb.com> <1254470874.17864.309.camel@ebony.2ndQuadrant> <4AC5B92A.7090508@enterprisedb.com> Content-Type: text/plain Date: Fri, 02 Oct 2009 11:46:51 +0100 Message-Id: <1254480411.17864.368.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 6331535f-af40-11de-9488-0022640b883e X-Report-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaAdbYlpF HGQLW11EUVx7XWB/ ag4fZQ1DY0tOQQRj UFZORU1QEQdtHhxP WBccI0EHKF9GeXlx YkUsWnBeWAp8dkV8 R01RQ3BXM2NgdWEe BBVFfgdceB5Kfh1H bFR/BnsFYjBJBC9q VzwTFhsSEA9kHWx1 RR1FFk4bR0oBD3Y7 QVgNHClH X-Authentic-SMTP: 61633235383639.1015:706/Kp X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.583 tagged_above=-10 required=5 tests=AWL=0.016, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200910/150 X-Sequence-Number: 146962 On Fri, 2009-10-02 at 11:26 +0300, Heikki Linnakangas wrote: > Simon Riggs wrote: > > On Fri, 2009-10-02 at 10:43 +0300, Heikki Linnakangas wrote: > > > >> It seems dangerous to write a WAL record after the shutdown checkpoint. > >> It will be overwritten by subsequent startup, which is a recipe for trouble. > > > > I've said its a corner case and not worth spending time on. I'm putting > > it in at your request. If it's not correct before and not correct after, > > where exactly do you want it? > > I don't know. Perhaps it should go between the REDO pointer of the > shutdown checkpoint and the checkpoint record itself. Or maybe the > information should be included in the checkpoint record itself. I've implemented this but it requires us to remove two checks - one at shutdown and one at startup on a shutdown checkpoint. I'm not happy doing that and would like to put them back. I'd rather just skip this for now. It's a minor case anyway and there's nothing stopping writing their own RunningXactData records with a function, if it is needed. I can add a function for that. -- Simon Riggs www.2ndQuadrant.com