Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2187C1337BA6 for ; Mon, 21 Feb 2011 02:19:29 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 64889-09 for ; Mon, 21 Feb 2011 06:19:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id 8465B1337B49 for ; Mon, 21 Feb 2011 02:19:21 -0400 (AST) Received: from [10.228.224.130] (93-158-18-58.subs.ibrowse.com [93.158.18.58]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id DCFA73B8F5; Mon, 21 Feb 2011 07:19:20 +0100 (CET) Message-ID: <4D6203E8.1050400@lelarge.info> Date: Mon, 21 Feb 2011 07:19:20 +0100 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); fr; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Selva manickaraja CC: "Dean Gibson (DB Administrator)" , pgsql-admin@postgresql.org Subject: Re: Trigger File Behaviour References: <4D5D5816.9000900@ultimeth.com> <4D5DED9B.4090407@ultimeth.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201102/181 X-Sequence-Number: 36820 Le 21/02/2011 02:04, Selva manickaraja a écrit : > I encountered a small issue when I run the script in the old-primary. The > "SELECT pg_start_backup...." part of the script will fail since the > postgres service has been stopped. Is this error meant to happen? > The "SELECT pg_start_backup... rsync... SELECT pg_stop_backup" must happen on the new primary. The psql comand probably needs a "-h new.primary.hostname" switch. -- Guillaume http://www.postgresql.fr http://dalibo.com