<div dir="ltr"><div>Hi Ishii-San</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 11, 2019 at 5:30 AM Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp">ishii@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">&gt; Hi Ishii-San<br>
&gt; <br>
&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; wrote:<br>
&gt; <br>
&gt;&gt; It is pointed out that watchdog lifecheck method with query mode does<br>
&gt;&gt; not work since 4.0.<br>
&gt;&gt;<br>
&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;<br>
&gt;&gt; The cause of this is using thread unsafe function<br>
&gt;&gt; get_pgpool_config_user_password(). Making it thread safe requires none<br>
&gt;&gt; trivial work. So I tend to agree that we disable using AES encrypted<br>
&gt;&gt; password for lifecheck method = &quot;query&quot;.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; Yes that&#39;s true, making get_pgpool_config_user_password thread safe would<br>
&gt; be lot of work.<br>
&gt; I am thinking what if change the code and call<br>
&gt; get_pgpool_config_user_password() from outside the thread function before<br>
&gt; creating<br>
&gt; the threads and pass in the password as the argument to the thread<br>
&gt; function. This way we can keep supporting theĀ  AES encrypted<br>
&gt; password for lifecheck method = &quot;query&quot;<br>
<br>
Sounds a nice idea. Can you please come up with a propose patch?<br></blockquote><div><br></div><div>Please find the attached patch which takes the get_pgpool_config_user_password()</div><div>function outside the thread, as discussed upthread.</div><div><br></div><div>Thanks</div><div>Best Regards</div><div>Muhammad Usama</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<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>
</blockquote></div></div>