<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 29, 2017 at 1:42 PM, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">&gt;&gt; I think these calls are only made by pgpool-worker child process, So one<br>
&gt;&gt; way could be to get the server version of each attached backend at the<br>
&gt;&gt; child startup (SELECT current_setting(&#39;server_<wbr>version_num&#39;))  and store the<br>
&gt;&gt; version for each backend node in respective backend data structure.<br>
&gt;&gt; And latter before sending the query we can construct the appropriate query<br>
&gt;&gt; by looking at the version information for that backend.<br>
&gt;<br>
&gt; server_version_num appeared in PostgreSQL 8.2. Since those functions<br>
&gt; are only used in streaming replication, which first appeared in 9.6,<br>
&gt; we can safely your method. Nice idea!<br>
<br>
</span>Done. I have only modified pool_worker.c because those function calls<br>
are only used in the streaming replication delay checking. Also this<br>
is less invasive.<br></blockquote><div><br></div><div>Yes, I also believe thats the right approach. Thanks for the fix.</div><div><br></div><div>Kind Regards</div><div>Muhammad Usama</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><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_<wbr>en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
</div></div></blockquote></div><br></div></div>