pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

New connections and the query added in QT is not getting restored on QT tab restore

Open anilsahoo20 opened this issue 5 months ago • 0 comments

Please note that security bugs or issues should be reported to [email protected].

Describe the bug

Issue-1: When we create a Query tool connection but later on add a new connection to the same query tool through New Connection Dialog, the new connection is not getting restored after pgAdmin reopens.

Only the query written before creating the new connection gets restored, not the query written after creation of new connection.

Issue-2: If we write some query on a query tool and then after sometime we remove the query, and close the app and reopen, it restores the query tool and also restore the query that we removed before closing the app.

To Reproduce

Steps to reproduce the behavior:

  1. Open QT
  2. Add new connections through the dropdown
  3. write some query
  4. on restore of app it shows the old connection not the new connection with the query

Expected behavior Issue-1: It should restore all the connections and the queries if present for the specific query tool.

Issue-2: It should only restore the QT but not the query.

anilsahoo20 avatar Jul 25 '25 07:07 anilsahoo20