GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #10031

New issue
Copy link
New issue
Copy link
Closed
Closed
Open queries autoruns when I start the app#10031
Copy link
Labels
Bug

Description

@jonashilmersson
jonashilmersson
opened on Jun 9, 2026
Issue body actions

Please 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:

  1. Start the app and connect to a server.
  2. Open a query window and write a SELECT that gets data from an existing table.
  3. Close the app with the query window open.
  4. Restart the app.
  5. 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.

Activity

  1. jonashilmersson
    added
    Bug
    on Jun 9, 2026
  2. dev-hari-prasad commented on Jun 9, 2026

    @dev-hari-prasad
    dev-hari-prasad
    on Jun 9, 2026
    Contributor
    More actions

    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.

  3. jonashilmersson commented on Jun 10, 2026

    @jonashilmersson
    jonashilmersson
    on Jun 10, 2026
    Author
    More actions

    Wow, that was fast, good job!

    Reacted by Hari Prasad
  4. jonashilmersson commented on Aug 5, 2026

    @jonashilmersson
    jonashilmersson
    on Aug 5, 2026
    Author
    More actions

    Hi, any timeframe on when this can be merged?

    Reacted by Hari Prasad
  5. dev-hari-prasad commented on Aug 6, 2026

    @dev-hari-prasad
    dev-hari-prasad
    on Aug 6, 2026
    Contributor
    More actions

    Waiting..., probably by this fortnight.

    Reacted by Jonas Hilmersson
  6. dpage
    closed this as completedin e78c7feon Sep 22, 2026
  7. dpage
    added a commit that references this issue on Sep 22, 2026

    Fix Query Tool tabs auto-running their query after a session restore (p…

    This issue will close once commit e78c7fe is merged into the 'master' branch.
    e78c7fe
  8. jonashilmersson commented on Sep 23, 2026

    @jonashilmersson
    jonashilmersson
    on Sep 23, 2026
    Author
    More actions

    I tried the new 9.18 and this is still an issue.

  9. dev-hari-prasad commented on Sep 23, 2026

    @dev-hari-prasad
    dev-hari-prasad
    on Sep 23, 2026
    Contributor
    More actions

    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.

  10. jonashilmersson commented on Sep 23, 2026

    @jonashilmersson
    jonashilmersson
    on Sep 23, 2026
    Author
    More actions

    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?

  11. dev-hari-prasad commented on Sep 23, 2026

    @dev-hari-prasad
    dev-hari-prasad
    on Sep 23, 2026
    Contributor
    More actions

    If my memory serves me well i guess approximately 5 weeks.

    Reacted by Jonas Hilmersson
  12. PierTrailslight commented on Nov 3, 2026

    @PierTrailslight
    PierTrailslight
    on Nov 3, 2026
    More actions

    Hi the issue is still present in 9.19

  13. jonashilmersson commented on Nov 5, 2026

    @jonashilmersson
    jonashilmersson
    on Nov 5, 2026
    Author
    More actions

    14. Hi the issue is still present in 9.19

    I can confirm this too.

    Reacted by Pier Francesco Costa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.