<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;color:rgb(0,0,0)">Hello,<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;color:rgb(0,0,0)">I would like to know whether it is possible to configure load balancing module in pgpool II so that it will be possible to redirect requests on the basis of tables (in the sql query) as well. For e.g., configurations like database_redirect_preference_list and app_name_redirect_preference_list gives us the granularity to redirect on the basis of database / clients. I&#39;m looking for something like <br><br>table_name_redirect_preference_list = &#39;table1:primary;table2:1,table3:standby&#39;. <br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;color:rgb(0,0,0)"><br><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;color:rgb(0,0,0)"><br></div>I
 couldn&#39;t find any such configurations - Is it possible to write some 
extensions (custom code to do the stuff mentioned above ) and attach it 
to pgpool II or will it be required to branch and add that piece of code
 to pgpool source and do a build / install ? <br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;color:rgb(0,0,0)">Reason : - I have set up a postgres cluster with SR (Streaming Replication). Due to inherent design, things are asynchronous and there will be a read miss if a recently inserted row in master was read from the slave. I went through the configuration sr_check_period and delay_threshold. What will happen to requests (insert row; read same row;) which was done under 1 second (lowest possible value for sr_check_period). I do not want to opt for sync replication due to performance reasons and also due to the fact that majority of the queries are &quot;reads&quot;.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;color:rgb(0,0,0)">I&#39;m aware of tables with heavy writes - Hence such a configuration / module (if available in runtime - even better) will help me to circumvent the problem. Of course, I&#39;m pretty much new to pgpool II - Please correct me I&#39;ve got it completely wrong.<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;color:rgb(0,0,0)">Regards,<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;color:rgb(0,0,0)">Dinesh<br></div></div>