<div dir="ltr">Thank you Tatsuo. That pretty much sums up the situation.<div><br></div><div>Gintas<br><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 12:30 AM, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don&#39;t think it&#39;s possible because of PostgreSQL&#39;s limitation:<br>
<br>
In streaming replication, no standby server accepts DMLs in the first<br>
place.<br>
<div class=""><br>
&gt;&gt;  *   synchronous replication:<br>
&gt;&gt;     *   If DML query relates to any of the table from that list, then<br>
&gt;&gt; pgpool would use synchronous replication - send DML to all DBs;<br>
<br>
</div>So this part is not possible.<br>
<div class="im HOEnZb"><br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">&gt; We were considering the option to implement this functionality. Do you<br>
&gt; think such configuration (my previous mail) is feasible on top of the<br>
&gt; current pgool code base? Would be it difficult to implement?<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Gintas<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Feb 3, 2014 at 1:33 PM, Lazaro Ruben Garcia Martinez &lt;<br>
&gt; <a href="mailto:lgarciam@vnz.uci.cu">lgarciam@vnz.uci.cu</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; An hybrid replication is not possible in this moment. Pgpool works in one<br>
&gt;&gt; specific mode, master-slave mode or syncronous replication.<br>
&gt;&gt;<br>
&gt;&gt; Regards.<br>
&gt;&gt; ________________________________________<br>
&gt;&gt; De: Gintautas Sulskus [<a href="mailto:gingaz@gmail.com">gingaz@gmail.com</a>]<br>
&gt;&gt; Enviado el: domingo, 02 de febrero de 2014 14:05<br>
&gt;&gt; Para: Lazaro Ruben Garcia Martinez<br>
&gt;&gt; CC: Athanasios | ZenGuard; <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
&gt;&gt; Asunto: Re: [pgpool-general: 2505] Re: Common practices for pgpool<br>
&gt;&gt; availability and data replication<br>
&gt;&gt;<br>
&gt;&gt; Thank you.<br>
&gt;&gt;<br>
&gt;&gt; Probably pgpool watchdog is the way to go for the first attempt.<br>
&gt;&gt;<br>
&gt;&gt; Regarding the second point. I had thoughts.. Would be possible to add a<br>
&gt;&gt; hybrid replication, that is:<br>
&gt;&gt;<br>
&gt;&gt;  *   pgpool would have a list of tables that must be synchronously<br>
&gt;&gt; replicated;<br>
&gt;&gt;  *   synchronous replication:<br>
&gt;&gt;     *   If DML query relates to any of the table from that list, then<br>
&gt;&gt; pgpool would use synchronous replication - send DML to all DBs;<br>
&gt;&gt;  *   asynchronous replication:<br>
&gt;&gt;     *   if DML query does not relate to any table from the list, then it<br>
&gt;&gt; would be sent to the master database and be replicated via streaming<br>
&gt;&gt; replication<br>
&gt;&gt;<br>
&gt;&gt; Is such approach technically feasible (if I wanted to add it)? Would it be<br>
&gt;&gt; difficult?<br>
&gt;&gt; I just had a thought, what if pgpool replicates DML query to all servers.<br>
&gt;&gt; How master&#39;s streaming replication then behaves?<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Gintas<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Jan 30, 2014 at 2:18 PM, Lazaro Ruben Garcia Martinez &lt;<br>
&gt;&gt; <a href="mailto:lgarciam@vnz.uci.cu">lgarciam@vnz.uci.cu</a>&lt;mailto:<a href="mailto:lgarciam@vnz.uci.cu">lgarciam@vnz.uci.cu</a>&gt;&gt; wrote:<br>
&gt;&gt; For number one you should use watchdog functionality.<br>
&gt;&gt;<br>
&gt;&gt; Regards.<br>
&gt;&gt; ________________________________________<br>
&gt;&gt; De: <a href="mailto:pgpool-general-bounces@pgpool.net">pgpool-general-bounces@pgpool.net</a>&lt;mailto:<br>
&gt;&gt; <a href="mailto:pgpool-general-bounces@pgpool.net">pgpool-general-bounces@pgpool.net</a>&gt; [<a href="mailto:pgpool-general-bounces@pgpool.net">pgpool-general-bounces@pgpool.net</a><br>
&gt;&gt; &lt;mailto:<a href="mailto:pgpool-general-bounces@pgpool.net">pgpool-general-bounces@pgpool.net</a>&gt;] En nombre de Athanasios |<br>
&gt;&gt; ZenGuard [<a href="mailto:athanasios@zenguard.org">athanasios@zenguard.org</a>&lt;mailto:<a href="mailto:athanasios@zenguard.org">athanasios@zenguard.org</a>&gt;]<br>
&gt;&gt; Enviado el: jueves, 30 de enero de 2014 6:48<br>
&gt;&gt; Para: Gintautas Sulskus<br>
&gt;&gt; CC: <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>&lt;mailto:<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>&gt;<br>
&gt;&gt; Asunto: [pgpool-general: 2505] Re: Common practices for pgpool<br>
&gt;&gt; availability and data replication<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt; for point 1) you can use keepalived and two pgpool machines<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Jan 30, 2014 at 12:00 PM, Gintautas Sulskus &lt;<a href="mailto:gingaz@gmail.com">gingaz@gmail.com</a><br>
&gt;&gt; &lt;mailto:<a href="mailto:gingaz@gmail.com">gingaz@gmail.com</a>&gt;&lt;mailto:<a href="mailto:gingaz@gmail.com">gingaz@gmail.com</a>&lt;mailto:<a href="mailto:gingaz@gmail.com">gingaz@gmail.com</a>&gt;&gt;&gt;<br>

&gt;&gt; wrote:<br>
&gt;&gt; Dear All,<br>
&gt;&gt;<br>
&gt;&gt; I have a few questions regarding practices with pgpool:<br>
&gt;&gt; 1. Typically pgpool is a single point of failure. What is the common<br>
&gt;&gt; practice to solve this?<br>
&gt;&gt; 2. Some of our data (e.g. 10% tables) must be consistent across the<br>
&gt;&gt; cluster for every transaction. The rest may differ. Is it possible to have<br>
&gt;&gt; a fine-grained replication, where some DMLs would be replicated<br>
&gt;&gt; synchronously and the rest would use asynchronous replication?<br>
&gt;&gt;<br>
&gt;&gt; Thanks!<br>
&gt;&gt;<br>
&gt;&gt; Best Regards,<br>
&gt;&gt; Gintautas<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; pgpool-general mailing list<br>
&gt;&gt; <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>&lt;mailto:<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>&gt;&lt;mailto:<br>
&gt;&gt; <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>&lt;mailto:<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>&gt;&gt;<br>
&gt;&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt; Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE<br>
&gt;&gt; ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!<br>
&gt;&gt; <a href="http://www.antiterroristas.cu" target="_blank">http://www.antiterroristas.cu</a><br>
&gt;&gt; <a href="http://justiciaparaloscinco.wordpress.com" target="_blank">http://justiciaparaloscinco.wordpress.com</a><br>
&gt;&gt;<br>
&gt;&gt; Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE<br>
&gt;&gt; ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!<br>
&gt;&gt; <a href="http://www.antiterroristas.cu" target="_blank">http://www.antiterroristas.cu</a><br>
&gt;&gt; <a href="http://justiciaparaloscinco.wordpress.com" target="_blank">http://justiciaparaloscinco.wordpress.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Best Regards,<br>
&gt;&gt; Gintautas Sulskus<br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt; Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE<br>
&gt;&gt; ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!<br>
&gt;&gt; <a href="http://www.antiterroristas.cu" target="_blank">http://www.antiterroristas.cu</a><br>
&gt;&gt; <a href="http://justiciaparaloscinco.wordpress.com" target="_blank">http://justiciaparaloscinco.wordpress.com</a><br>
&gt;&gt;<br>
&gt;&gt; Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE<br>
&gt;&gt; ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!<br>
&gt;&gt; <a href="http://www.antiterroristas.cu" target="_blank">http://www.antiterroristas.cu</a><br>
&gt;&gt; <a href="http://justiciaparaloscinco.wordpress.com" target="_blank">http://justiciaparaloscinco.wordpress.com</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Best Regards,<br>
&gt; Gintautas Sulskus<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<br>Gintautas Sulskus
</div>