Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 74054650070 for ; Thu, 18 Dec 2008 17:43:52 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18392-03 for ; Thu, 18 Dec 2008 17:43:49 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.autorevenue.com (mail.autorevenue.com [208.178.167.106]) by mail.postgresql.org (Postfix) with ESMTP id B9322650060 for ; Thu, 18 Dec 2008 17:43:47 -0400 (AST) Received: (qmail 10947 invoked from network); 18 Dec 2008 16:45:00 -0500 Received: from unknown (HELO dei26g028534) (msteben@10.10.6.168) by mail.autorevenue.com with SMTP; 18 Dec 2008 16:45:00 -0500 From: "Mark Steben" To: Subject: Warm Standby - log shipping Date: Thu, 18 Dec 2008 16:43:10 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 Thread-Index: AclhWZ8XzOEeGrqsRhKdix14pufmhg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 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: 200812/150 X-Sequence-Number: 30983 Hi folks, I'm learning to use log shipping in our development environment with the expectation to use it In production next month. =20 We are at postgresql 8.2.5 Our master is in Massachusetts and our = standby is in Norfolk, Va. We plan on using the Norfolk server not so much as a recovery failover = but as a replicated database To run reports and establish a data warehousing environment. As such = the plan is to run the=20 Standby in recovery state for the majority of the day, then 'complete' recovery there, bring it Online, perform our reporting and data warehousing functions (in = read-only mode of course), Then bring it back into recovery mode, letting the updates catch up for = the next days processing. My questions are: 1. Is this a proper usage of log shipping? 2. If yes, what are the preferred mechanisms for forcing a standby = server to 'complete' a recovery, then to force it back into recovery mode once everything is finished. So far, I have simply stopped the server, = renamed the recovery.conf file then restarted the server. When done, I go the other way. This doesn't always work as there are = files sometimes being copied from master to standby, then get only partially copied into the pg_xlog directory on the standby. I do use a script in recovery.conf that 'waits' for xlogs to be copied over but the problem occurs when I am not in recovery mode and the = recovery.conf file is not being invoked. 3. I am currently in a state where a log got partially copied and = postgres cannot find a valid checkpoint to restart. What is the best way to = remedy this situation? Pg_resetxlog perhaps? Thanks for your help=20 Mark Steben=81Database Administrator=81=20 @utoRevenue-R- "Join the Revenue-tion" COME SEE US AT NADA BOOTH #1021, HALL B, IN NEW ORLEANS! 95 Ashley Ave. West Springfield, MA., 01089=20 413-243-4800 x1512 (Phone) =81 413-732-1824 (Fax) @utoRevenue is a registered trademark and a division of Dominion = Enterprises =20 =20 =20