Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A1FE164FCFD for ; Wed, 22 Oct 2008 17:06:59 -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 26348-04 for ; Wed, 22 Oct 2008 17:06:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.int.journyx.com (mail.journyx.com [66.219.41.227]) by postgresql.org (Postfix) with ESMTP id F354364FCD5 for ; Wed, 22 Oct 2008 17:06:53 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id 316F47E43B1 for ; Wed, 22 Oct 2008 15:06:52 -0500 (CDT) X-Virus-Scanned: amavisd-new at Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a+UM8qhVI-XO for ; Wed, 22 Oct 2008 15:06:50 -0500 (CDT) Received: from whitneys (dhcp-100-201.int.journyx.com [192.168.100.201]) by mail.int.journyx.com (Postfix) with ESMTP id 4F5717E424E for ; Wed, 22 Oct 2008 15:06:50 -0500 (CDT) From: "Scott Whitney" To: Subject: Another PITR question Date: Wed, 22 Oct 2008 15:06:50 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 thread-index: Ack0gbf6USn+DlsxQyCVbnOftoQXng== Message-Id: <20081022200650.4F5717E424E@mail.int.journyx.com> 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: 200810/155 X-Sequence-Number: 30611 Sorry for the repetition on some of this stuff. I'm just now learning it. So, I've got my WALs archiving just fine, and I've got my base backup. What I'd like to do is keep the standby server in recovery mode. Docs say: "If we continuously feed the series of WAL files to another machine that has been loaded with the same base backup file, we have a "hot standby" system: at any point we can bring up the second machine and it will have a nearly-current copy of the database." Yep. That's what I want, alright. So, what I have is this: Production server: archive command: (pseudo code): stick 'em out in the mounted dir Recovery server: restore command: This is where it gets dicey, to me. If I say: restore_command = 'cp /mnt/server/archivedir/%f %p' it will copy all existing WAL files from the archive dir into the xlog dir, and when I start the postmaster it will replay them. However, I want the standby to CONSTANTLY stay in recovery mode, not just restore the WALs it finds when I start it. Is this possible? Can someone explain or point me to some example docs somewhere?