microsoft / microsoft/vscode-pgsql
Connection to server got closed. Server will not be restarted.
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 395
- Forks
- 33
- Avg merge
- 1h 46m
- Merged PRs (30d)
- 3
Description
Describe the bug
[PYI-78957:ERROR] Failed to load Python shared library '/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python': dlopen(/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python, 0x000A): tried: '/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python' (no such file), '/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python' (errno=62)
[Error - 1:13:58 PM] Connection to server got closed. Server will not be restarted.
To Reproduce
Steps to reproduce the behavior:
- Click on PostgreSQL extension 1.16
- Output tab shows error
- Getting connections, load query history etc.. are stuck
Expected behavior
Connection windows shows all connections to various servers or give an option to add server. Once connected to a server, right click on database shows "Connect in Agent Mode" option
Screenshots
VS Code version
Version: 1.109.5 (Universal)
Commit: 072586267e68ece9a47aa43f8c108e0dcbf44622
Date: 2026-02-19T19:43:32.382Z
Electron: 39.3.0
ElectronBuildId: 13313481
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0
Extension Logs
See: https://github.com/microsoft/vscode-pgsql?tab=readme-ov-file#usage-and-feedback
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the extension logs linked in the issue and reproduce the failure in PostgreSQL extension 1.16 on macOS arm64. Trace the failed pgsqltoolsservice Python shared-library load; done means the connection window loads connections and the database context menu offers “Connect in Agent Mode” without the server connection closing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python, vscode
- Domain
- database, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100