<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 21, 2016 at 6:11 AM, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span>&gt; Hi Ishii-San<br>
&gt;<br>
&gt; Can you please have a look at the attached patch, It try to solve this<br>
&gt; &quot;Kind does not match ..&quot; problem by ignoring the notice messages while<br>
&gt; reading the backend response in read_kind_from_backend() function<br>
<br>
</span>Doesn&#39;t this patch simply ignore important messages like this?<br></blockquote><div><br></div><div>Basically patch only ignores the notice log messages and these messages are important, especially ones with severity level of WARNING and NOTICE, to inform the user about some critical issue. </div><div>I may be wrong, but I don&#39;t think these log message are important in terms of PG protocol flow. i.e. notice (kind = &#39;N&#39;) message only contains the log  and is delivered to frontend (pgpool-II in our case) depending on <i>client_min_messages</i> settings in postgresql.conf.</div><div>So I think it should be safe to ignore these. </div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div><div><br>
&gt;&gt;&gt; ... WARNING: database &quot;testdb&quot; must be vacuum within 11000000 transaction<br>
<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Apr 19, 2016 at 1:50 PM, Ahsan Hadi &lt;<a href="mailto:ahsan.hadi@enterprisedb.com" target="_blank">ahsan.hadi@enterprisedb.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;&gt; I agree this cause lot of annoyance to pgpool users and something we<br>
&gt;&gt; should address for 3.6.<br>
&gt;&gt;<br>
&gt;&gt; Usama,<br>
&gt;&gt; Is this added to 3.6 wiki?<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Apr 15, 2016 at 11:46 AM, Muhammad Usama &lt;<a href="mailto:m.usama@gmail.com" target="_blank">m.usama@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hi<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; pgpool throws &quot;.. kind does not match..&quot; error message when all the<br>
&gt;&gt;&gt; attached backend nodes do not return the same response to the query. Although<br>
&gt;&gt;&gt; this error message can be a symptom of the backend node sync issue in<br>
&gt;&gt;&gt; most cases, but in case when the message kind of backend nodes differs<br>
&gt;&gt;&gt; because one of the backend returned the notice response while the other<br>
&gt;&gt;&gt; returned some other kind then that case should not be considered as an<br>
&gt;&gt;&gt; error case.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Consider the scenario where a pgpool is connected to three backend nodes<br>
&gt;&gt;&gt; and pgpool is expecting to receive &quot;[C] command complete&quot; message from<br>
&gt;&gt;&gt; all nodes for the last query. But while processing the query one of the<br>
&gt;&gt;&gt; backend also produced a warning message.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ... WARNING: database &quot;testdb&quot; must be vacuum within 11000000 transaction<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Please note that the query was successful on all attached backend, but<br>
&gt;&gt;&gt; one backend also produced an extra warning message along with the command<br>
&gt;&gt;&gt; complete message.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Now pgpool will throw an error something like<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ERROR: pid 720: read_kind_from_backend: 1 th kind N does not match<br>
&gt;&gt;&gt; with master or majority connection kind C<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; But since the node would also have sent the expected command complete<br>
&gt;&gt;&gt; message after that warning notice, So Ideally, pgpool should ignore the<br>
&gt;&gt;&gt; WARNING message and compare the subsequent message, and only throw an error<br>
&gt;&gt;&gt; if the message from nodes after ignoring notification messages differs.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What are your thoughts on this?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Kind regards<br>
&gt;&gt;&gt; Muhammad Usama<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; pgpool-hackers mailing list<br>
&gt;&gt;&gt; <a href="mailto:pgpool-hackers@pgpool.net" target="_blank">pgpool-hackers@pgpool.net</a><br>
&gt;&gt;&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Ahsan Hadi<br>
&gt;&gt; Snr Director Product Development<br>
&gt;&gt; EnterpriseDB Corporation<br>
&gt;&gt; The Enterprise Postgres Company<br>
&gt;&gt;<br>
&gt;&gt; Phone: <a href="tel:%2B92-51-8358874" value="+92518358874" target="_blank">+92-51-8358874</a><br>
&gt;&gt; Mobile: <a href="tel:%2B92-333-5162114" value="+923335162114" target="_blank">+92-333-5162114</a><br>
&gt;&gt;<br>
&gt;&gt; Website: <a href="http://www.enterprisedb.com" rel="noreferrer" target="_blank">www.enterprisedb.com</a><br>
&gt;&gt; EnterpriseDB Blog: <a href="http://blogs.enterprisedb.com/" rel="noreferrer" target="_blank">http://blogs.enterprisedb.com/</a><br>
&gt;&gt; Follow us on Twitter: <a href="http://www.twitter.com/enterprisedb" rel="noreferrer" target="_blank">http://www.twitter.com/enterprisedb</a><br>
&gt;&gt;<br>
&gt;&gt; This e-mail message (and any attachment) is intended for the use of the<br>
&gt;&gt; individual or entity to whom it is addressed. This message contains<br>
&gt;&gt; information from EnterpriseDB Corporation that may be privileged,<br>
&gt;&gt; confidential, or exempt from disclosure under applicable law. If you are<br>
&gt;&gt; not the intended recipient or authorized to receive this for the intended<br>
&gt;&gt; recipient, any use, dissemination, distribution, retention, archiving, or<br>
&gt;&gt; copying of this communication is strictly prohibited. If you have received<br>
&gt;&gt; this e-mail in error, please notify the sender immediately by reply e-mail<br>
&gt;&gt; and delete this message.<br>
&gt;&gt;<br>
</div></div></blockquote></div><br></div></div>