Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0AE3A65003C for ; Fri, 11 Jul 2008 13:15:44 -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 33436-10 for ; Fri, 11 Jul 2008 13:15:40 -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 E5D1C64FCE7 for ; Fri, 11 Jul 2008 13:15:40 -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 m6BGFdpb006523; Fri, 11 Jul 2008 12:15:39 -0400 (EDT) To: Robert Treat cc: pgsql-admin@postgresql.org Subject: Re: pitr standby on slave with skewed time In-reply-to: <200807111119.46117.xzilla@users.sourceforge.net> References: <200807111119.46117.xzilla@users.sourceforge.net> Comments: In-reply-to Robert Treat message dated "Fri, 11 Jul 2008 11:19:45 -0400" Date: Fri, 11 Jul 2008 12:15:39 -0400 Message-ID: <6522.1215792939@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/115 X-Sequence-Number: 29725 Robert Treat writes: > Was review a clients config/setup and ran across a pitr warm standby scenario > where the master machine is set to the current time, but the slave's time is > currently sitting back in the month of May. Outside of getting ntp setup on > the machine, I am wondering if I need to do anything special with the > postgresql setup, or if just setting the correct date on the machine is a > safe enough operation that nothing else would need to be done (like re-doing > the base backup). Any thoughts? AFAIR you should be all right ... PITR only looks at WAL indexes, not file timestamps. The slave does watch the current time to decide when to do recovery restartpoints, so if you were setting the clock *back* by a large amount it might be wise to stop and restart the slave postmaster. Forward should be no problem though. regards, tom lane