Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9649EB5DC17 for ; Tue, 20 Sep 2011 22:24:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 96754-04 for ; Wed, 21 Sep 2011 01:24:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-gw0-f46.google.com (mail-gw0-f46.google.com [74.125.83.46]) by mail.postgresql.org (Postfix) with ESMTP id 377F1B5DC09 for ; Tue, 20 Sep 2011 22:24:14 -0300 (ADT) Received: by gwb15 with SMTP id 15so1357842gwb.33 for ; Tue, 20 Sep 2011 18:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=JbfVUuGx7w1Fu+tCYhmITrGL4/T35GNa+IedFKVnCC0=; b=Gxr1ULQ39QlnBDFIuf2vONj1VwlcEQWdu2VSeBY5DK20aWqh/cjKiaubHjKOHhUrh/ ZZWtaLDAHHPKG5t/V7cOODZoopTpq/czvNwvWyx4SMDwV8ED2WGw5PjEqd4umCYZ/5sz rNLZgjO+na6jW01FQvlhcTQ9UyW8kmWeXOpRA= Received: by 10.68.14.228 with SMTP id s4mr495412pbc.418.1316568253646; Tue, 20 Sep 2011 18:24:13 -0700 (PDT) Received: from [192.168.1.4] ([116.231.56.18]) by mx.google.com with ESMTPS id i2sm11518421pbt.3.2011.09.20.18.24.06 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Sep 2011 18:24:12 -0700 (PDT) Message-ID: <4E793CAF.6060600@gmail.com> Date: Wed, 21 Sep 2011 09:23:59 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-admin@postgresql.org Subject: Re: Warm standby terminate itself? References: <4E78C3C3.5040208@gmail.com> <4E78878D0200002500041401@gw.wicourts.gov> In-Reply-To: <4E78878D0200002500041401@gw.wicourts.gov> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201109/144 X-Sequence-Number: 38381 Got it. thanks. 于2011年9月21日 1:31:09,Kevin Grittner写到: > 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 >