擅长:python、mysql、java
<p>postgresql9.6可能会在<a href="https://stackoverflow.com/a/45627782/1587329">https://stackoverflow.com/a/45627782/1587329</a>中提到的新超时之后终止连接。那样的话,你可以</p>
<blockquote>
<p>the <code>statement_timeout</code> in <code>postgresql.conf</code></p>
</blockquote>
<p>但它是<a href="https://www.postgresql.org/docs/9.6/runtime-config-client.html#GUC-IDLE-IN-TRANSACTION-SESSION-TIMEOUT" rel="nofollow noreferrer">not recommended</a>。在</p>
<p>它可能在Postico中有效,因为该值已在那里设置。在</p>
<p>要记录一个错误,您需要将<code>log_min_error_statement</code>设置为<code>ERROR</code>或更低,以便它显示出来。在</p>