pgadmin-org / pgadmin-org/pgadmin4
Add option to automatically reconnect lost database sessions
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 891
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 8
Description
Problem:
When the database connection is lost, Query Tool shows a confirmation dialog asking whether to establish a new session.
Solution:
It would be useful to have a setting to automatically reconnect without showing this prompt, while keeping the current behavior as the default.
This is particularly useful with serverless PostgreSQL providers like Neon, where connections may be terminated after being idle for some time. Having to manually confirm the reconnect each time interrupts the workflow, especially when returning to an existing Query Tool session.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the Query Tool's existing lost-connection flow, locating the confirmation dialog and how session reconnection is triggered. Trace where Query Tool settings are defined and persisted; done means a setting enables automatic reconnection, the current prompt remains the default, and the behavior works for idle PostgreSQL sessions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100