<html><head><style>p{margin-top:0px;margin-bottom:0px;}</style></head><body><div style="font-size:10pt; font-family:Gulim, sans-serif;"><p>Hi</p><p>&nbsp;</p><p>I am testing Streaming replication with pgpool but I have problem.</p><p>&nbsp;</p><p>I am useing client_idle_limit in pgpool.conf.</p><p>&nbsp;</p><p>Suppose I set client_idle_limit to 60.</p><p>&nbsp;</p><p>And after sending Query1, if I do not send Query2 for 60 seconds, the connection will be disconnected.</p><p>&nbsp;</p><p>Sixty seconds after the connection is disconnected, if I send Query 2, pgpool makes a new connection, and instead of getting a response, it send out an error.</p><p>&nbsp;</p><p>Like this.</p><p>&nbsp;</p><p>test=&gt; SELECT * FROM pg_stat_activity ORDER BY query_start ASC;</p><p>&nbsp;datid | datname |&nbsp; pid&nbsp; | usesysid | usename | application_name |&nbsp; client_addr&nbsp; | client_hostname | client_port |</p><p>&nbsp; &nbsp; &nbsp; backend_start&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xact_start&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;query_start&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state_change</p><p>&nbsp; &nbsp; &nbsp;| waiting | state&nbsp; | backend_xid | backend_xmin |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; query</p><p>-------+---------+-------+----------+---------+------------------+---------------+-----------------+-------------+---</p><p>----------------------------+------------------------------+------------------------------+--------------------------</p><p>-----+---------+--------+-------------+--------------+----------------------------------------------------------</p><p>&nbsp;16384 | test&nbsp; | 55934 |&nbsp; &nbsp; 16385 | test&nbsp; | psql&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| 11.22.412.534 |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; &nbsp; &nbsp; &nbsp;55053 | 20</p><p>18-12-19 18:27:03.215835+09 | 2018-12-19 18:27:07.53777+09 | 2018-12-19 18:27:07.53777+09 | 2018-12-19 18:27:07.53779</p><p>2+09 | f&nbsp; &nbsp; &nbsp; &nbsp;| active |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|&nbsp; &nbsp; &nbsp; 1473227 | SELECT * FROM pg_stat_activity ORDER BY query_start ASC;</p><p>(1 row)</p><p>&nbsp;</p><p>test=&gt; SELECT * FROM pg_stat_activity ORDER BY query_start ASC;</p><p>ERROR:&nbsp; unable to read data</p><p>DETAIL:&nbsp; child connection forced to terminate due to client_idle_limit:60 is reached</p><p>server closed the connection unexpectedly</p><p>&nbsp; &nbsp; &nbsp; &nbsp; This probably means the server terminated abnormally</p><p>&nbsp; &nbsp; &nbsp; &nbsp; before or while processing the request.</p><p>The connection to the server was lost. Attempting reset: Succeeded.</p><p>&nbsp;</p><p>Instead of getting an error when the connection is disconnected, I want to get a response by connecting a new connection.</p><p>&nbsp;</p><p>I need your help on this part.</p><div><br></div></div></body></html><table style='display:none'><tr><td><img src="https://mail.naver.com/readReceipt/notify/?img=4sFnbrl%2F1Nb9MxCvFAmspxuZMxJ0FqJ0a6E9az3CaxvZaziSFqKZM43gMX%2B0MogwKVl5WLl5pNiC740ThoRmpXITWrmRprk5pBiCWuImpXITWrm5W4kd.gif" border="0"/></td></tr></table>