<div dir="ltr">Thank you both for the answers.<br>
<br>
I will test postgis replication across the nodes and blacklist the functions that need writing or updating.<br>
<br>
Both the dbs and the watchdogs reside on the same data center, so 
hopefully there will be no issues with network performances. I will 
monitor that too anyway.<br>
<br>
Best Regards,<br>
<br>
Paolo Crosato<br><div class="gmail_extra"><br><div class="gmail_quote">2016-05-26 14:44 GMT+02:00 Muhammad Usama <span dir="ltr">&lt;<a href="mailto:m.usama@gmail.com" target="_blank">m.usama@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, May 26, 2016 at 2:29 PM, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span>&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m evaluating a pgpool cluster with 2 nodes as a substitute for the single<br>
&gt; postgresql instance we are using now.<br>
&gt;<br>
&gt;&gt;From an application perspective, my main concern is postgis. We are<br>
&gt; extensively using postgis in our applications. As I understood pgpool will<br>
&gt; transparently handle any pgsql write instruction like insert or update, but<br>
&gt; how are statements like AddGeometryColumn handled? Do I need to put every<br>
&gt; &quot;write&quot; statement in the black_function_list?<br>
<br>
</span>Basically yes. Recently Usama eliminated the space limitation of the<br>
memory area for black_function_list and you can register as many as<br>
function names you like.<br>
<br>
Usama, do you have any suggestion for this?<br></blockquote><div><br></div></span><div>Not really. Basically black_function_list is the best way to make sure that the statement with writing function lands on the master node. Alternatively query can be prefixed with <span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;text-indent:12px">/*NO LOAD BALANCE*/</span><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;text-indent:12px">  comments, but that will require the changes on the application side.</span></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;text-indent:12px">Another thing to note here is black_function_list and whie_function_list also support regular expression, So if there is a specific prefix that all writing functions have than instead of putting the name of each and every function in the list a generic regular expression can also be used.</span></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;text-indent:12px"><br></span></div><div style="text-indent:12px"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size:12px">Regards</span></font></div><div style="text-indent:12px"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size:12px">Muhammad Usama</span></font></div><div><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;text-indent:12px"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class=""><span><br>
&gt; As a side note, we have been provided with 2 db nodes with the same size as<br>
&gt; our singel instance, but the two watchdog machines are 2 cores instances<br>
&gt; with only 1G or ram, is this enough to run the watchdog smoothly? We have<br>
&gt; around 1K IOPS.<br>
<br>
</span>Pgpool (and watchdog) does not consume too much CPU and memory and<br>
usually the resource you are given should be enough to handle the<br>
load. I think network device performance is rather important, since<br>
pgpool needs to handle lots of network traffics.<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br></span>
_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>