Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 84C6AB5DC5F for ; Tue, 20 Sep 2011 14:31:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 28852-03-8 for ; Tue, 20 Sep 2011 17:31:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 09FCAB5DC42 for ; Tue, 20 Sep 2011 14:31:20 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Tue, 20 Sep 2011 12:31:19 -0500 Message-Id: <4E78878D0200002500041401@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Tue, 20 Sep 2011 12:31:09 -0500 From: "Kevin Grittner" To: "Rural Hunter" , Subject: Re: Warm standby terminate itself? References: <4E78C3C3.5040208@gmail.com> In-Reply-To: <4E78C3C3.5040208@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/136 X-Sequence-Number: 38373 Rural Hunter wrote: > I set up an warm standby server which fetches WAL logs from a > remote server. It has been working very well. But today, I was > editing the restore script(which is set as the restore_command) > with vi. Just right after I saved the script, I noticed suddenly > the standby server terminated. Updating a recovery script while it is executing is a problem. I tend to update a copy of the script, stop the warm standby, mv the copy into place, and start the warm standby. You can do that without kicking it out of recovery status. -Kevin