<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 17, 2019 at 9:17 AM Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Usama,<br>
<br>
Thank you for your patch.<br>
<br>
Yugo testet your patch, and give us some feedbacks.<br>
Could you test the patch again?<br>
<br>
<a href="https://www.pgpool.net/mantisbt/view.php?id=455" rel="noreferrer" target="_blank">https://www.pgpool.net/mantisbt/view.php?id=455</a><br>
<br></blockquote><div><br></div><div>Sorry my bad, Yugo&#39;s patch is correct,</div><div>I figured out the mistake, fixed that and actually tested with the correct version </div><div>but unfortunately somehow attached the wrong patch file in the mail :-(</div><div><br></div><div>Thanks</div><div>Best Regards</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
On Mon, 14 Jan 2019 19:12:48 +0500<br>
Muhammad Usama &lt;<a href="mailto:m.usama@gmail.com" target="_blank">m.usama@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Ishii-San<br>
&gt; <br>
&gt; On Fri, Jan 11, 2019 at 5:30 AM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt; wrote:<br>
&gt; <br>
&gt; &gt; &gt; Hi Ishii-San<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Thu, Jan 10, 2019 at 11:52 AM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;&gt; It is pointed out that watchdog lifecheck method with query mode does<br>
&gt; &gt; &gt;&gt; not work since 4.0.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; <a href="https://www.pgpool.net/mantisbt/view.php?id=455" rel="noreferrer" target="_blank">https://www.pgpool.net/mantisbt/view.php?id=455</a><br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; The cause of this is using thread unsafe function<br>
&gt; &gt; &gt;&gt; get_pgpool_config_user_password(). Making it thread safe requires none<br>
&gt; &gt; &gt;&gt; trivial work. So I tend to agree that we disable using AES encrypted<br>
&gt; &gt; &gt;&gt; password for lifecheck method = &quot;query&quot;.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; Yes that&#39;s true, making get_pgpool_config_user_password thread safe would<br>
&gt; &gt; &gt; be lot of work.<br>
&gt; &gt; &gt; I am thinking what if change the code and call<br>
&gt; &gt; &gt; get_pgpool_config_user_password() from outside the thread function before<br>
&gt; &gt; &gt; creating<br>
&gt; &gt; &gt; the threads and pass in the password as the argument to the thread<br>
&gt; &gt; &gt; function. This way we can keep supporting the  AES encrypted<br>
&gt; &gt; &gt; password for lifecheck method = &quot;query&quot;<br>
&gt; &gt;<br>
&gt; &gt; Sounds a nice idea. Can you please come up with a propose patch?<br>
&gt; &gt;<br>
&gt; <br>
&gt; Please find the attached patch which takes the<br>
&gt; get_pgpool_config_user_password()<br>
&gt; function outside the thread, as discussed upthread.<br>
&gt; <br>
&gt; Thanks<br>
&gt; Best Regards<br>
&gt; Muhammad Usama<br>
&gt; <br>
&gt; <br>
&gt; &gt; Best regards,<br>
&gt; &gt; --<br>
&gt; &gt; Tatsuo Ishii<br>
&gt; &gt; SRA OSS, Inc. Japan<br>
&gt; &gt; 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>
&gt; &gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
&gt; &gt;<br>
<br>
<br>
-- <br>
Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;<br>
SRA OSS, Inc. Japan<br>
<br>
</blockquote></div></div>