<div dir="auto">No, it doesn't. </div><div dir="auto">In that case when you make the select statement, piggy internal queries failed and the session rebooted </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 25 Apr 2022 at 9:30 Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">> Thanks for the explanation and fast response.<br>
> <br>
> You mentioned the piggy internal queries, and I am trying to understand if<br>
> what I saw is the right behaving.<br>
> <br>
> I open a transaction, and my second statement was an Insert statement which<br>
> was failed. In that case any other statements should be ignored until<br>
> rollback. But after the Insert statement I did a select statement which<br>
> triggers the piggy internal queries. In that case the first internal query<br>
> was failed and because of that the connection was rebooted.<br>
> <br>
> In that case this is fine ? Or not? Why piggy behave different  in that<br>
> scenario where the internal query failed due to an earlier transaction<br>
> error?<br>
<br>
You mean following case for example?<br>
(This is a session via pgpool.)<br>
<br>
test=# begin;<br>
BEGIN<br>
test=*# insert into ttt values(1);<br>
ERROR:  relation "ttt" does not exist<br>
LINE 1: insert into ttt values(1);<br>
                    ^<br>
test=!# select 1;<br>
ERROR:  current transaction is aborted, commands ignored until end of transaction block<br>
test=!#<br>
<br>
I think pgpool works as expected.<br>
<br>
Best reagards,<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>