我使用 SQL 工作台连接 postgresql。但我经常收到以下错误
This connection has been closed.
每当我让窗口闲置2-3分钟时。
我不确定在哪里更改设置。请帮我 。
版本:构建 118.7
我使用 SQL 工作台连接 postgresql。但我经常收到以下错误
This connection has been closed.
每当我让窗口闲置2-3分钟时。
我不确定在哪里更改设置。请帮我 。
版本:构建 118.7
If the server is configured to disconnect idle connections, you can configure a statement that is sent to the database server in regular intervals.
This is done in the connection profile. Click on the "Connect scripts" button:
Then enter a statement for "Statement to keep connection alive".
In the "Idle time" you can configure how often the statement should be executed. "1m" means that it's run every minute unless you run statements manually (or do something in the DbExplorer)
This should prevent the server to disconnect your session.