<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Can somebody help please?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><br>
Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Virendra</span><span style="font-size:7.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Kumar, Virendra
<br>
<b>Sent:</b> Wednesday, September 05, 2018 1:14 PM<br>
<b>To:</b> 'pgpool-general@pgpool.net'<br>
<b>Subject:</b> PGPOOL Error with DEALLOCATE<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hi PGPOOL Developers,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">When we run a simple deallocate command using pgpool as loadbalancer in master-slave mode while the connection is on standby server we are getting below error. I read it somewhere that it is fixed but surprisingly this is not the case.
 We are using pgpool 3.7.1:<o:p></o:p></p>
<p class="MsoNormal">--<o:p></o:p></p>
<p class="MsoNormal">ap_sit_db=# PREPARE usrrptplan (int) AS select count(*) from ap.site_exposure_p1;<o:p></o:p></p>
<p class="MsoNormal">PREPARE<o:p></o:p></p>
<p class="MsoNormal">ap_sit_db=# select * from pg_prepared_statements;<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; statement&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; prepare_time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;| parameter_types | from_sql<o:p></o:p></p>
<p class="MsoNormal">------------&#43;-----------------------------------------------------------------------&#43;-------------------------------&#43;-----------------&#43;----------<o:p></o:p></p>
<p class="MsoNormal">usrrptplan | PREPARE usrrptplan (int) AS select count(*) from ap.site_exposure_p1; | 2018-09-04 12:12:28.449465-05 | {integer}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | t<o:p></o:p></p>
<p class="MsoNormal">(1 row)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">ap_sit_db=#<o:p></o:p></p>
<p class="MsoNormal">ap_sit_db=# EXECUTE usrrptplan(2);<o:p></o:p></p>
<p class="MsoNormal">count<o:p></o:p></p>
<p class="MsoNormal">--------<o:p></o:p></p>
<p class="MsoNormal">171721<o:p></o:p></p>
<p class="MsoNormal">(1 row)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">ap_sit_db=# DEALLOCATE usrrptplan;<o:p></o:p></p>
<p class="MsoNormal">WARNING:&nbsp; packet kind of backend 1 ['E'] does not match with master/majority nodes packet kind ['C']<o:p></o:p></p>
<p class="MsoNormal">FATAL:&nbsp; failed to read kind from backend<o:p></o:p></p>
<p class="MsoNormal">DETAIL:&nbsp; kind mismatch among backends. Possible last query was: &quot;DEALLOCATE usrrptplan;&quot; kind details are: 0[C] 1[E: prepared statement &quot;usrrptplan&quot; does not ex<o:p></o:p></p>
<p class="MsoNormal">ist]<o:p></o:p></p>
<p class="MsoNormal">HINT:&nbsp; check data consistency among db nodes<o:p></o:p></p>
<p class="MsoNormal">server closed the connection unexpectedly<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This probably means the server terminated abnormally<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; before or while processing the request.<o:p></o:p></p>
<p class="MsoNormal">The connection to the server was lost. Attempting reset: Succeeded.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Virendra<span style="font-size:7.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2"><br>
This message is intended only for the use of the addressee and may contain<br>
information that is PRIVILEGED AND CONFIDENTIAL.<br>
<br>
If you are not the intended recipient, you are hereby notified that any<br>
dissemination of this communication is strictly prohibited. If you have<br>
received this communication in error, please erase all copies of the message<br>
and its attachments and notify the sender immediately. Thank you.<br>
</font>
</body>
</html>