pgadmin-org / pgadmin-org/pgadmin4

Add option to automatically reconnect lost database sessions

Open
#10,215 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
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.

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.