Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UN2aa-0002D8-VR for pgsql-admin@arkaria.postgresql.org; Tue, 02 Apr 2013 14:53:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UN2aa-000205-DQ for pgsql-admin@arkaria.postgresql.org; Tue, 02 Apr 2013 14:53:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UN2aY-0001z2-SJ for pgsql-admin@postgresql.org; Tue, 02 Apr 2013 14:53:31 +0000 Received: from mail-ea0-x233.google.com ([2a00:1450:4013:c01::233]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UN2aM-00071F-1A for pgsql-admin@postgresql.org; Tue, 02 Apr 2013 14:53:30 +0000 Received: by mail-ea0-f179.google.com with SMTP id f15so261940eak.10 for ; Tue, 02 Apr 2013 07:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=europecamions-interactive.com; s=google.europecamions-interactive.com; h=x-received:message-id:date:from:organization:user-agent :mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=FUH5QGGgzM+hZYZWn1WNIZU3hwHf7MwMkC926ZFrcgk=; b=MpmOqjjUgYqdb2r4ngx9ktOlG6MsTp8r5N9bwTLRBYUrP4ToZ+bVgoGXWfDC6ayUhk YG86KLCBv0MAkdDD0wq+DrN/ImelYcJCSu2HHqNVlHcp6NPyOSYIq844OjsjuNsmWF16 Or7kCIrzB0yr3v6fbwktTNa4ZdW2OnFQpT9NY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:organization:user-agent :mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:x-gm-message-state; bh=FUH5QGGgzM+hZYZWn1WNIZU3hwHf7MwMkC926ZFrcgk=; b=FzWshmIV0JJ+HEKonPRBWeWWfJ5ZUX0tYhIPGemOd4brB7tNfMhTsidlXlbTH91KvA O/bnnR24tqaOTm8tAHN4dxtZq26HyyLqIfbaRp1X4B6yZjtfxXtQmcVkFDodMtsa95PA 515pOD4H5hu281MdJnxP5hxfTzFooc7XuZzk2kns0gQkctmkMjyHmvKhCodDaI2srstF qaNwNXm8lrtodHZyLisM59vquFF5tEU5Jv5pao8HiU4Fm+zqXKMLYsMXeFV2uNvCwqZB QS/y+KINjHsu1BNVs1nc+0/c+Uaay8JZsCVCuxfh9/HGUnwwh6+lJgoEKx6/63r2n3k2 FE5g== X-Received: by 10.14.5.6 with SMTP id 6mr49774411eek.42.1364914396893; Tue, 02 Apr 2013 07:53:16 -0700 (PDT) Received: from [192.168.0.162] ([212.234.226.208]) by mx.google.com with ESMTPS id 44sm3174524eek.5.2013.04.02.07.53.14 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Apr 2013 07:53:15 -0700 (PDT) Message-ID: <515AF0D8.2010702@europecamions-interactive.com> Date: Tue, 02 Apr 2013 16:53:12 +0200 From: David Guyot Organization: ECI User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: Douglas J Hunley CC: pgsql-admin@postgresql.org Subject: Re: Hot standby with streaming replication under PgSQL 9.1.x : failover when master crashes? References: <515AEB4E.9010305@europecamions-interactive.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2OHKUBHQPWSWOKPQVJNJT" X-Gm-Message-State: ALoCoQks1heWqvCsf1yEXQuwAim96Gx2tv3anB/NmtWLoiTYG91jVCSYbPt2HchIRx/j6N2N686X X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2OHKUBHQPWSWOKPQVJNJT Content-Type: multipart/alternative; boundary="------------090105070709090202020800" This is a multi-part message in MIME format. --------------090105070709090202020800 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mister, Thank you for your answer. I had in mind that this line was for the initial start of the standby; should I just comment it before promoting the standby, or is this line useless for the day-to-day standby service? Thank you in advance. Regards. Le 02/04/2013 16:47, Douglas J Hunley a =C3=A9crit : > > On Tue, Apr 2, 2013 at 10:29 AM, David Guyot (English) > > wrote: > > restore_command =3D 'rsync -av > 192.168.0.80:/var/lib/postgresql/WAL/%f %p' > > > You're telling the recovery process to get the files off the (now > dead) master here... > > > --=20 > Douglas J Hunley (doug.hunley@gmail.com )= > Twitter: @hunleyd Web: > douglasjhunley.com > G+: http://goo.gl/sajR3 --=20 David Guyot Administrateur syst=C3=A8me, r=C3=A9seau et t=C3=A9l=C3=A9communications Europe Camions Interactive Moulin Collot F-88500 Ambacourt Tel: +33 (0)3 29 30 47 85 Fax : +33 (0)3 29 31 31 31 --------------090105070709090202020800 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mister,

Thank you for your answer. I had in mind that this line was for the initial start of the standby; should I just comment it before promoting the standby, or is this line useless for the day-to-day standby service?

Thank you in advance.

Regards.

Le 02/04/2013 16:47, Douglas J Hunley = a =C3=A9crit=C2=A0:

On Tue, Apr 2, 2013 at 10:29 AM, David Guyot (English) <david.guyot@europecamions-interactive.c= om> wrote:
restore_command =3D 'rsync -av 192.168.0.80:/var/lib/postgresql/WAL/%f %p'

You're telling the recovery process to get the files off the (now dead) master here...


--
Douglas J Hunley (doug.= hunley@gmail.com)
Twitter: @hunleyd =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Web: douglasj= hunley.com
G+: http://goo.gl/sajR3

--=20
David Guyot
Administrateur syst=C3=A8me, r=C3=A9seau et t=C3=A9l=C3=A9communications
Europe Camions Interactive
Moulin Collot
F-88500 Ambacourt

Tel: +33 (0)3 29 30 47 85
Fax : +33 (0)3 29 31 31 31
--------------090105070709090202020800-- ------enig2OHKUBHQPWSWOKPQVJNJT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJRWvDYAAoJEOdwVf06csTSoPEQAJtgiouLemc+D4R4Y6+vokTu UCyQjJ6xwpFwVujfIfeBQjydTyBpg3c6I5ffM3iS+r6Es0LSRmnNPSskq7GoLzTy /1s+cQR6pZcAs1TH5Svcihp6dj8TiVqlVsqYlzyszf5WOlGgkz4NaZJidVirVJM5 uuPJUqrfZp2+nFjl6T/IC+TI/7wSQBxYJL8WWVdvc615842fvC1HSxHrNSDqQHDm nyTURFy+s77tecSnuPmO1F7KED2A53mZ+BPo4LRR4875aUf6P+/rWQeL/pJ2rG2z f3DHU8AH9CVHUAcyDhHLZXK8ETKYi36i/3aji3CO1WoGSGjSBACyX0GDuca360as eX+9eW1B+OHrCpHKNVlNgIpv56irfIo+fP+sATeg/Eccq3yWC1wBau5c5tGOBDOx u1XNJAUTxCoJ3nyDVQjWdFpky8Qx6Dz50AJ/43uxZ4s3ZhVq6ep88andQcFAo87A /8wTi8F4E1zG3SZoFaMA0I2VJk8Ta0XzwYyGSPBxEtPFbk/Bp/9s2d0+vCjgdxqj q72lXXlgtQcSu709PxoToSyLuOXN2bS/Ai7YHulJY1Dt+pgdc5nLezvUJMJop/ud Wq7M+wruscRSx088/cjpe7i9Cimdlgq5yjURBLCIG6Yumb9kepm3mCd/WET9yTmD sNpmk+CG/QepCJTBSUfD =VUUI -----END PGP SIGNATURE----- ------enig2OHKUBHQPWSWOKPQVJNJT--