<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;}
/* 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">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&nbsp;&nbsp; I do have an app using hibernate &amp; c3p0. In order to avoid the default c3p0 test query I set the following :<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&lt;property name=&quot;hibernate.c3p0.preferredTestQuery&quot; value=&quot;SELECT 1&quot;/&gt;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&nbsp;&nbsp; In the pgpool logs, I do see the following error:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">2016-01-19 09:48:47: pid 7736: pname CHILD:LOG:&nbsp; statement: SELECT 1<o:p></o:p></p>
<p class="MsoNormal">2016-01-19 09:48:47: pid 7736: pname CHILD:LOG:&nbsp; DB node id: 1 backend pid: 14756 statement: SELECT 1<o:p></o:p></p>
<p class="MsoNormal">&#8230;.<o:p></o:p></p>
<p class="MsoNormal">2016-01-19 09:49:16: pid 7721: pname CHILD:LOG:&nbsp; statement: SELECT 1<o:p></o:p></p>
<p class="MsoNormal">2016-01-19 09:49:16: pid 7721: pname CHILD:LOG:&nbsp; DB node id: 1 backend pid: 14865 statement: SELECT 1<o:p></o:p></p>
<p class="MsoNormal">&#8230;.<o:p></o:p></p>
<p class="MsoNormal">2016-01-19 09:49:18: pid 7683: pname CHILD:LOG:&nbsp; statement: SELECT 1<o:p></o:p></p>
<p class="MsoNormal">2016-01-19 09:49:18: pid 7683: pname CHILD:LOG:&nbsp; DB node id: 1 backend pid: 14867 statement: SELECT 1<o:p></o:p></p>
<p class="MsoNormal">&#8230;.<o:p></o:p></p>
<p class="MsoNormal">2016-01-19 09:49:21: pid 7704: pname CHILD:LOG:&nbsp; DB node id: 1 backend pid: 14872 statement: Parse: SELECT 1<o:p></o:p></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">2016-01-19 09:49:21: pid 7704: pname CHILD:LOG:&nbsp; pool_send_and_wait: Error or notice message from backend: : DB node id: 1 backend pid: 14872 statement: &quot;SELECT 1&quot; message: &quot;current transaction
 is aborted, commands ignored until end of transaction block&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">2016-01-19 09:49:21: pid 7704: pname CHILD:LOG:&nbsp; Parse: Error or notice message from backend: : DB node id: 1 backend pid: 14872 statement: &quot;SELECT 1&quot; message: &quot;current transaction is
 aborted, commands ignored until end of transaction block&quot;</span><o:p></o:p></p>
<p class="MsoNormal">&#8230;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&nbsp;&nbsp; My question is why this would fail or is it &#8216;normal&#8217; ?!? <o:p>
</o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;From my searches on google it seems that for postgresql that is the preferred query. Is there another preferred test query ?!?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&nbsp; I am using version: rpm -qa | grep pgpool<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pgpool-II-pg93-3.4.3-1pgdg.rhel6.x86_64<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&nbsp;&nbsp; Thx.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">BR,<o:p></o:p></p>
<p class="MsoNormal">Dan S.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>