Skip to content

fix(pg): closing a sequence or routine view releases its lease without interrupting the shared session (#1215) - #1236

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/1215-sequence-routine-dispose
Oct 9, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/1215-sequence-routine-dispose

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Refs #1215

What was wrong

Closing the sequence or routine view while it was loading called PostgresService.interrupt on the read-only session of the database. That session is shared with the tree, the table tabs, the Relations view and MCP, so closing one view broke whatever else was using it. This is the same bug #1215 fixed for the table browser; these two views were the follow-up that issue left out.

Changes

  • Both views' dispose only releases their lease. The interruptIfBusy parameter, which did nothing else, is removed.
  • A load still running when the view closes finishes or times out on its own.

Not verified locally

Tests were not run locally, per the project rule. There is no unit test here: the views need a PostgreSQL session, and the change removes a call rather than adding behaviour.

…t interrupting the shared session (#1215)

Closing the sequence or routine view while it was loading interrupted the
read-only session of the database: the same shared session the tree, the table
tabs, the Relations view and MCP use. Those views now only release their lease,
as the table browser does since #1215.
@github-actions github-actions Bot added bug Something isn't working stability Theme parser epic label: stability core Core library logic and services connections Database connections, URI parsing, pools P1 High priority / Core capability labels Oct 9, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit ea75ddf into dev Oct 9, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working connections Database connections, URI parsing, pools core Core library logic and services P1 High priority / Core capability stability Theme parser epic label: stability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant