From sgm277@yahoo.com.cn Thu May 3 05:48:10 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id CF46E1E4344F for ; Thu, 3 May 2012 02:48:10 -0300 (ADT) Received: from nm4-vm2.bullet.mail.sg3.yahoo.com ([106.10.148.129]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SPotb-0004BU-Rx for pgsql-admin@postgresql.org; Thu, 03 May 2012 05:48:09 +0000 Received: from [106.10.166.112] by nm4.bullet.mail.sg3.yahoo.com with NNFMP; 03 May 2012 05:47:52 -0000 Received: from [106.10.151.187] by tm1.bullet.mail.sg3.yahoo.com with NNFMP; 03 May 2012 05:47:52 -0000 Received: from [127.0.0.1] by omp1013.mail.sg3.yahoo.com with NNFMP; 03 May 2012 05:47:52 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 715592.93871.bm@omp1013.mail.sg3.yahoo.com Received: (qmail 76016 invoked by uid 60001); 3 May 2012 05:47:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.cn; s=s1024; t=1336024072; bh=LjispZA3HsNFptPGWZZu7q/fe9wLRutcJpnESlKN7Bc=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=MIsNdnZzkpqRMQF8o0yiEoJvZ0BMmPDGAGWaqX2912YJeu0UPQGeXsNZA+lbv+h2xx1tmzgDMuWKxyLDK2aRWKHmrQJnYGVghJfhYETmUFHGp8h9/ZLQnH/rUtzWgEr+2vsoBKytu0mCLDEGFE2ZKogg1JunXrhtqt08nRRTKKw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=O/veU8PIU5t8VdAGy5bQy0pNiSO0v59I2yGx3LDOB9zDB4axlOY4cE9KbeFa8Q2RKtM9hCpfQQUeKM2Fqrqs0eCJj81us/xr7mig1OicVkZNz9zpv7pAEr/GvlhaaubbkXsM7kORcNP59xx5AU5PTEXI7W4fq5nmsCm/ZHMsYgg=; X-YMail-OSG: bF4wsiYVM1l.82BauD4AmHkBkJTGdKkRUA3_vVPhJcfhRt8 ftWWQjUgMfqXzqR6m8Hf1UDvPWstqnCvcGD77EccyVQyRb_gDOmULl2W1K7s k0dfZGQ7OJ44j.qwMNLA5ZrNciXQZI.zA0aOtmfIc4DV4Lz0jAhlLCPqgZAX 2JuSzRHQKnZCSC17ELbWbuwf2ou8zvTzQ4YN_VUKWJBaqZBBlsuaV8Ohnpuc Cfj8sPm5U2d.hLv8uAXkgQRj_cLdcgeaghtx.jMJ_dL9GIvR3WEEBkT1ddm4 ddtdcPyueRQ8Ch7_bwdL6Oxas.geRMCTP4Lr9BXzbwLpRSfQ2V1a2dXbSoYw mnft_PClfDI_l6JQ3d5FTw7b88kj932Xl1_8h_GIIVT_KvR270lnpVAEeWEq 6vxf_XoU4nxnhEb0xZE2LLs0_lsnv7KY- Received: from [218.241.169.34] by web15608.mail.cnb.yahoo.com via HTTP; Thu, 03 May 2012 13:47:52 CST X-Mailer: YahooMailClassic/15.0.6 YahooMailWebService/0.8.117.340979 Message-ID: <1336024072.75926.YahooMailClassic@web15608.mail.cnb.yahoo.com> Date: Thu, 3 May 2012 13:47:52 +0800 (CST) From: sgm Subject: postgresql stream replication question To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1134129794-259346682-1336024072=:75926" X-Pg-Spam-Score: 1.1 (+) X-Archive-Number: 201205/11 X-Sequence-Number: 39500 ---1134129794-259346682-1336024072=:75926 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear admin, I have successfully set up the stream replication M1--IP1, M2---IP2, my que= stion is if the master is down, the slave will become read and write by tri= gger file, but the client will connect to the IP2,right? Thanks, Song ---1134129794-259346682-1336024072=:75926 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Dear admin,

I have success= fully set up the stream replication M1--IP1, M2---IP2, my question is if th= e master is down, the slave will become read and write by trigger file, but= the client will connect to the IP2,right?

Thanks,=

Song
---1134129794-259346682-1336024072=:75926-- From devrim@gunduz.org Thu May 3 07:34:28 2012 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id BCF27C4CD76 for ; Thu, 3 May 2012 04:34:28 -0300 (ADT) Received: from ns1.gunduz.org ([77.79.103.58]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SPqYU-00061w-O1 for pgsql-admin@postgresql.org; Thu, 03 May 2012 07:34:28 +0000 Received: from [192.168.16.46] (unknown [176.90.153.116]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ns1.gunduz.org (Postfix) with ESMTPSA id F2B1C6122D; Thu, 3 May 2012 07:31:16 +0000 (UTC) Message-ID: <1336030440.4812.54.camel@lenovo01-laptop03.gunduz.org> Subject: Re: postgresql stream replication question From: Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= To: sgm Cc: pgsql-admin@postgresql.org Date: Thu, 03 May 2012 10:34:00 +0300 In-Reply-To: <1336024072.75926.YahooMailClassic@web15608.mail.cnb.yahoo.com> References: <1336024072.75926.YahooMailClassic@web15608.mail.cnb.yahoo.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-TedIixXUQVDYZHhGEl2s" X-Mailer: Evolution 3.2.3 (3.2.3-3.fc16) Mime-Version: 1.0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/12 X-Sequence-Number: 39501 --=-TedIixXUQVDYZHhGEl2s Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2012-05-03 at 13:47 +0800, sgm wrote: > I have successfully set up the stream replication M1--IP1, M2---IP2, > my question is if the master is down, the slave will become read and > write by trigger file, but the client will connect to the IP2,right? No. You will need something else (like Red Hat Cluster Suite) for that. Regards, --=20 Devrim G=C3=9CND=C3=9CZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Engineer Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz --=-TedIixXUQVDYZHhGEl2s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAk+iNOgACgkQtl86P3SPfQ6UUgCfXqk2dxwURZKpde/DPGqhUHDd iIAAn2u4cnhAN1CELocgKTgU1E/KUhDj =fxGF -----END PGP SIGNATURE----- --=-TedIixXUQVDYZHhGEl2s-- From sgm277@yahoo.com.cn Thu May 3 08:05:28 2012 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 12CB6C4CD77 for ; Thu, 3 May 2012 05:05:28 -0300 (ADT) Received: from nm12-vm3.bullet.mail.sg3.yahoo.com ([106.10.149.3]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SPr2T-0006HF-L8 for pgsql-admin@postgresql.org; Thu, 03 May 2012 08:05:27 +0000 Received: from [106.10.166.118] by nm12.bullet.mail.sg3.yahoo.com with NNFMP; 03 May 2012 08:05:09 -0000 Received: from [106.10.151.187] by tm7.bullet.mail.sg3.yahoo.com with NNFMP; 03 May 2012 08:05:09 -0000 Received: from [127.0.0.1] by omp1013.mail.sg3.yahoo.com with NNFMP; 03 May 2012 08:05:09 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 765877.26662.bm@omp1013.mail.sg3.yahoo.com Received: (qmail 95724 invoked by uid 60001); 3 May 2012 08:05:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.cn; s=s1024; t=1336032308; bh=qOPziqKxfq4Am4LXJvRq3ivgBDKRltBNfdPmQ4ulscM=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=zc/oKsOWJAM9J0gdmuj66FA+JAx502WcHfFHAVWwAb//LRJ451GkpqZywoxoveB33fJBowElGfhhZK/clEozD/z0anJacCx5IHlq3cfFYmnnnttHpJ+09UUKpWmH5w0nb4OqmfhJt7mgkx8JtKmE2OetrhluXv/kk9uDN8Ewg/8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=X5vjTyygkEGS3JBLqAhqrrzJOqMS9JcNGxg9+zfKB7G9a7Sv0bB7piwsm3BvI2hqLbrarvTcwnUi9t+7V2flinI+XMdBOEGojXBWcCNT4WPUbHMXljSkke0OrOCCT1m90BTc+ScIu5RZGb6cHDscR+hp+2J20lmooBZaBFIY4Ik=; X-YMail-OSG: _TWYFCoVM1l9w0Yb_20eWKGoZB0NjPXxq7RihKjrnIJeic4 N5.gp0btzxkVAKNSLp74rgt7sbYLRbcOgol2arBEhe_86UO_ETXwShiRqH2f QYxLP.ZyGCPEh31ZHX5IbEQLwCBU5lnI0Vz5TZGM3LqoWBdk7SnptWdyLfS4 1IiXVDB0OWMyxDGvKT97CuR29WuzKcgSQI7waejlgZ3Bxz7nVTYsCpgAiyQR EF7X4GdWj1DPgf417Ghju1MfGuFX.KVXqJAmA4XPpUxxkBZlZOoCeWICoabE 2B4ztXWHCmdA5rLVo5xDABy6Wgu.nol2.VyMg4Lb3v98DiCCCOLkBffxVx.5 90_vPypdBakAQYZHAmoWLmwherEEyo_4e_gdBpUk9R2OWtpzAvl1Ot.9kl0J CbBkmkORHf7_Z2lysmxarAXBOf_TWdB8uVxY0m8I5yE4PpRfuHnK_aWQCcMP zUtmTr9n8F_jIxdeoIdOvTooGw0OtLcASx6LOzSKVRqGLvxckN1BWgUhLBDA G7DcWjyLifKBf.2Hp1YJks1KeZsIp6F8fBkki.PUNONWITkp3WFuSNdC8hMr u0EJaLN0ZBCJjIg8.O2cm.ymY54niobpRU0.eaDiTF319I0ssA_gImxWnFdh LC.wl38toMKUA3iqOM7oe72fYGuIf0GCJdlrFKWwW8TzxOSHQsJLNQzgfX7Y 6hIsWvH4HKiTKCQ-- Received: from [218.241.169.34] by web15607.mail.cnb.yahoo.com via HTTP; Thu, 03 May 2012 16:05:08 CST X-Mailer: YahooMailClassic/15.0.6 YahooMailWebService/0.8.117.340979 Message-ID: <1336032308.94842.YahooMailClassic@web15607.mail.cnb.yahoo.com> Date: Thu, 3 May 2012 16:05:08 +0800 (CST) From: sgm Subject: Re: postgresql stream replication question To: =?utf-8?B?RGV2cmltIEfDnE5Ew5xa?= Cc: pgsql-admin@postgresql.org In-Reply-To: <1336030440.4812.54.camel@lenovo01-laptop03.gunduz.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="787465216-1448026976-1336032308=:94842" X-Pg-Spam-Score: -1.7 (-) X-Archive-Number: 201205/21 X-Sequence-Number: 39510 --787465216-1448026976-1336032308=:94842 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you sir. --- 12=E5=B9=B45=E6=9C=883=E6=97=A5=EF=BC=8C=E5=91=A8=E5=9B=9B, Devrim G=C3= =9CND=C3=9CZ =E5=86=99=E9=81=93=EF=BC=9A =E5=8F=91=E4=BB=B6=E4=BA=BA: Devrim G=C3=9CND=C3=9CZ =E4=B8=BB=E9=A2=98: Re: [ADMIN] postgresql stream replication question =E6=94=B6=E4=BB=B6=E4=BA=BA: "sgm" =E6=8A=84=E9=80=81: pgsql-admin@postgresql.org =E6=97=A5=E6=9C=9F: 2012=E5=B9=B45=E6=9C=883=E6=97=A5,=E5=91=A8=E5=9B=9B,= =E4=B8=8B=E5=8D=883:34 On Thu, 2012-05-03 at 13:47 +0800, sgm wrote: > I have successfully set up the stream replication M1--IP1, M2---IP2, > my question is if the master is down, the slave will become read and > write by trigger file, but the client will connect to the IP2,right? No. You will need something else (like Red Hat Cluster Suite) for that. Regards, --=20 Devrim G=C3=9CND=C3=9CZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Engineer Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org=C2=A0 Twitter: http://twitter.com/devrimgunduz --787465216-1448026976-1336032308=:94842 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Thank you sir.

--- 12=E5=B9=B45=E6= =9C=883=E6=97=A5=EF=BC=8C=E5=91=A8=E5=9B=9B, Devrim G=C3=9CND=C3=9CZ <= ;devrim@gunduz.org> =E5=86=99=E9=81=93=EF=BC=9A

=E5=8F=91=E4=BB=B6=E4=BA=BA: Devrim G=C3=9CND=C3=9CZ <de= vrim@gunduz.org>
=E4=B8=BB=E9=A2=98: Re: [ADMIN] postgresql stream re= plication question
=E6=94=B6=E4=BB=B6=E4=BA=BA: "sgm" <sgm277@yahoo.c= om.cn>
=E6=8A=84=E9=80=81: pgsql-admin@postgresql.org
=E6=97=A5=E6= =9C=9F: 2012=E5=B9=B45=E6=9C=883=E6=97=A5,=E5=91=A8=E5=9B=9B,=E4=B8=8B=E5= =8D=883:34

On Thu, 2012-05-03 at 13:47 +080= 0, sgm wrote:
> I have successfully set up the stream replication M1-= -IP1, M2---IP2,
> my question is if the master is down, the slave wil= l become read and
> write by trigger file, but the client will connec= t to the IP2,right?

No. You will need something else (like Red Hat C= luster Suite) for that.

Regards,
--
Devrim G=C3=9CND=C3=9CZ
Principal Syste= ms Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Dan=C4=B1=C5=9Fma= n=C4=B1/Consultant, Red Hat Certified Engineer
Community: devrim~Postgre= SQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz=
--787465216-1448026976-1336032308=:94842--