GeezerVison is showing github.com — Open queries autoruns when I start the app · Issue #10031 · pgadmin-org/pgadmin4
Open queries autoruns when I start the app #10031DescriptionPlease note that security bugs or issues should be reported to [email protected].
Describe the bug
When I have opened queries from the last session, they automatically gets executed on the next startup of the app.
To Reproduce
Steps to reproduce the behavior:
- Start the app and connect to a server.
- Open a query window and write a SELECT that gets data from an existing table.
- Close the app with the query window open.
- Restart the app.
- The previous query window is opened again and executed.
Expected behavior
The query should not be automatically executed. Imagine if I have a DELETE query saved and that runs.
Error message
If possible, include the full, unedited text of any error messages displayed.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows-11-10.0.26200-SP0
- pgAdmin version: 9.15
- Mode: Desktop
- Package type: [e.g. RPM, DEB, Python, Container, etc.]
Additional context
Add any other context about the problem here. Activitydev-hari-prasad commented on Jun 9, 2026 Thanks for reporting this.
I was able to reproduce it locally following the steps. After looking through the restore process, it looks like restored Query Tool tabs can end up being identified incorrectly during initialization.
Because of that, they may go through logic that is intended for the view or edit data tabs, which can result in the query being executed automatically when pgAdmin starts. I have put together a fix and opened a PR for review. Expect this to be fixed soon. jonashilmersson commented on Jun 10, 2026 Wow, that was fast, good job! jonashilmersson commented on Aug 5, 2026 Hi, any timeframe on when this can be merged? dev-hari-prasad commented on Aug 6, 2026 Waiting..., probably by this fortnight. Reacted by Jonas Hilmersson added a commit that references this issue on Sep 22, 2026This issue will close once commit e78c7fe is merged into the 'master' branch.e78c7fe jonashilmersson commented on Sep 23, 2026 I tried the new 9.18 and this is still an issue. dev-hari-prasad commented on Sep 23, 2026 The PR was merged post the release of 9.18 so the behaviour you reported is expected in 9.18.
However, going forward from 9.18+ this fix will be in place. jonashilmersson commented on Sep 23, 2026
The PR was merged post the release of 9.18 so the behaviour you reported is expected in 9.18.
However, going forward from 9.18+ this fix will be in place.
Ok, I was a bit to eager then :-) . When is the fix planned for release? dev-hari-prasad commented on Sep 23, 2026 If my memory serves me well i guess approximately 5 weeks. Reacted by Jonas Hilmersson PierTrailslight commented on Nov 3, 2026 Hi the issue is still present in 9.19 jonashilmersson commented on Nov 5, 2026
14. Hi the issue is still present in 9.19
I can confirm this too. Reacted by Pier Francesco Costa
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|