<div dir="ltr">Which version of postgres are you using and have you set a statement_timeout or idle_in_transaction_session_timeout in postgres.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 2, 2020 at 9:45 AM Cliff Patterson <<a href="mailto:cpatterson@psdrcs.com">cpatterson@psdrcs.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi QGISers,<div><br></div><div>Does anyone know if there is a way to avoid being timed out when connecting to a Postgres/PostrGIS database using Database Manager? If I leave DB Manager open for a while (~10min) with no activity, I get the following error:</div><div><pre style="margin-top:12px;margin-bottom:0px"><span style="font-family:"Courier New"">server closed the connection unexpectedly</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New"">        This probably means the server terminated abnormally</span></pre>
<pre style="margin-top:0px;margin-bottom:12px"><span style="font-family:"Courier New"">       before or while processing the request.</span></pre><pre style="margin-top:0px;margin-bottom:12px"><font face="arial, sans-serif">The only way to get it working again is to close/open DB Manager. Clicking re-connect on the database just causes DB Manager to freeze up. </font></pre><pre style="margin-top:0px;margin-bottom:12px"><span style="font-family:arial,sans-serif">Thanks,</span><br></pre><pre style="margin-top:0px;margin-bottom:12px"><font face="arial, sans-serif">Cliff</font></pre><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><p style="margin-bottom:0.0001pt">Cliff Patterson Ph.D.<br><br><b>PSD</b> | Senior GIS Consultant <br>P: 519-690-2565 ext. 2616<br><a href="http://www.psdrcs.com" target="_blank">www.psdrcs.com</a><br>London | 148 Fullarton St. 9th Floor <span style="font-size:small">        </span><br></p><p style="font-size:12.8px;margin-bottom:0.0001pt"><span style="font-size:12.8px"><span style="font-size:9pt;line-height:12.84px;font-family:Verdana,sans-serif;color:rgb(0,112,192)"><img src="http://psdrcs.com/assets/email_signature.png" width="200" height="57"></span></span></p></div></div></div></div></div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>