Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2162E632EEB for ; Fri, 2 Oct 2009 09:52:49 -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 11326-07 for ; Fri, 2 Oct 2009 12:52:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail128053.authsmtp.com (outmail128053.authsmtp.com [62.13.128.53]) by mail.postgresql.org (Postfix) with ESMTP id 3BC70632DF1 for ; Fri, 2 Oct 2009 09:52:38 -0300 (ADT) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt8.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n92CqXtH009273; Fri, 2 Oct 2009 13:52:33 +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 n92CqUch034131; Fri, 2 Oct 2009 13:52:31 +0100 (BST) Subject: Re: Hot Standby on git From: Simon Riggs To: Heikki Linnakangas Cc: pgsql-hackers In-Reply-To: <4AC5DB71.7000105@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> <1254480411.17864.368.camel@ebony.2ndQuadrant> <4AC5DB71.7000105@enterprisedb.com> Content-Type: text/plain Date: Fri, 02 Oct 2009 13:40:47 +0100 Message-Id: <1254487247.17864.377.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 72a1cbb2-af52-11de-9488-0022640b883e X-Report-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaAdbYlpF HGQLW11EUV57XGF/ aAsfZQ1DY0tOQQRj UFZORU1QEQdtHhxP WBccIVgXJF1Ge3px ZkcsXXVTXAp9dxd8 ERwGF3BXM2JidWEe 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/155 X-Sequence-Number: 146967 On Fri, 2009-10-02 at 13:52 +0300, Heikki Linnakangas wrote: > Simon Riggs wrote: > > 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. > > That won't help. There's no way to have it in a right place wrt. the > shutdown checkpoint if it's triggered by a user-callable function. I notice that you avoid saying "yes, I agree we should remove the two checks". I will add code to make a shutdown checkpoint be a valid starting place for Hot Standby, as long as there are no in-doubt prepared transactions. That way we know there are no xids still running and no locks, without needing to write a record to say so. -- Simon Riggs www.2ndQuadrant.com