Skip to content

fix(pg): closing a browser or stats view releases its lease without interrupting the shared session (#1237) - #1244

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/1237-pg-browser-dispose
Oct 9, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/1237-pg-browser-dispose

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1237. Part of #1212.

Problem

Closing one of the PostgreSQL browser views (index, trigger, type, extension, FDW lists) or the stats view while it was loading called PostgresService.interrupt. That force-closed the shared read-only session, so queries from the object tree, other views and MCP failed.

Change

Tests

No new test. The fix removes a call, and the singleton pool cannot be faked without a live PostgreSQL, which CI does not provide. The acceptance check "closing while loading leaves the shared session intact" is not covered by a test; it was checked by reading the code. Existing tests run in CI.

…nterrupting the shared session (#1237)

Index, trigger, type, extension and FDW list views, and the stats view,
force-closed the shared read-only session when they were closed mid-load.
Every other query on that session then failed. Their dispose now only
releases the lease, as the table, sequence and routine views already do.
@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 de9aff8 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