Thanks for such a prompt reply Sir !<div><br /></div><div>Yeah I am sorry I framed my question incorrectly. Actually I wanted the difference between PgPool II 3.7.3 "replication" mode & "master-slave" mode.</div><div>Anyways from your reply its clear that if PostgreSQL Server's are doing actual replication then PgPool II 3.7.3 should be set up in master-slave mode with</div><div>sub-mode of "stream" with load - balancing on. Right ????</div><div><br /></div><div>In that case PgPool II will smartly load-balance queries based on its type to slave or master. PgPool will not do any replication.</div><div><br /></div><div>Glad to get such a prompt response. Still If I am getting anything wrong do let me know.</div><div><br /></div><div>Regards,</div><div>Nitish Kumar</div><div><br /><span>On 06/08/18 04:39 PM, <b class="name">Tatsuo Ishii </b> <ishii@sraoss.co.jp> wrote:</span><blockquote cite="mid:20180608.200741.2247882420249645149.t-ishii@sraoss.co.jp" class="iwcQuote" style="border-left: 1px solid #00F; padding-left: 13px; margin-left: 0;" type="cite"><div class="mimetype-text-plain">> Hi Team,<br />> <br />> Kindly guide me ! I am heavily confused between Running modes of PgPool II 3.7.3.<br />> <br />> I am having 3 PostgreSQL 10 Servers running in Streaming replication Hot Standby mode. In which 1 is master and 2 are slaves. <br />> The 1 master PostgreSQL 10 Server supports both read/write and 2 slave PostgreSQL 10 Servers supports only read queries.<br />> <br />> I am setting PgPool II 3.7.3 to load balance all my queries among these 3 servers based on query type i.e read queries should be distributed between<br />> all the 3 PostgreSQL 10 servers and write query should only go to Master PostgreSQL 10 server. I don't want PgPool to do replication ! I just want PgPool to<br />> do smart load-balancing. <br />> <br />> Now for this above configuration of mine I am not able to decide PgPool II 3.7.3. Running Modes. I am confused between Master-Slave(Stream) Mode <br />> and Streaming Replication mode !<br />> <br />> Since the documentation for both the modes suggests that the streaming/replication and synchronization of data will be done by PostgreSQL 10 servers.<br />> <br />> Please elaborate any technical details of both the modes if I am missing anything. And most importantly considering my PostgreSQL 10 Servers infrastructure <br />> which mode should I use ???<br />> <br />> I may missing something. Any suggestions are welcome.<br />> <br />> Regards,<br />> Nitish Kumar<br /><br />> I am confused between Master-Slave(Stream) Mode and Streaming Replication mode !<br /><br />Actually they are identical, meaning:<br /><br />master_slave_mode = on<br />master_slave_sub_mode = 'stream'<br /><br />In this mode replication are done by PostgreSQL. Pgpool-II does load<br />balancing.<br /><br />Some background of this:<br /><br />In the early days of Pgpool-II, there was only master_slave_mode,<br />which supposed to use Slony-I, since streaming replication did not<br />exist yet. Then the streaming replication comes up. From a Pgpool-II's<br />point of veiw, there were subtle differences in the way to handle<br />Slony-I and streaming replication. So we invented<br />master_slave_sub_mode to distinguish them.<br /><br />> Please elaborate any technical details of both the modes if I am missing anything. And most importantly considering my PostgreSQL 10 Servers infrastructure <br />> which mode should I use ???<br /><br />I think for most uses cases streaming replication mode should be best<br />for you.  However if your application is sensitive to replication<br />delay between PostgreSQL primary and standby, you might want to set<br />synchronous_commit = remote_apply in postgresql.conf, which eliminate<br />the replication delay sacrificing performance. Because primary has to<br />wait before commit until standby applies the WAL.<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" target="l">http://www.sraoss.co.jp/index_en.php</a><br />Japanese:<a href="http://www.sraoss.co.jp" target="l">http://www.sraoss.co.jp</a><br /></div></blockquote></div>