GeezerVison is showing github.com — PSQL tool not working as expected on pgAdmin 9.19 - · Issue #10714 · pgadmin-org/pgadmin4
PSQL tool not working as expected on pgAdmin 9.19 - #10714DescriptionWhen using the "PSQL Tool", the following text appears on the "console" window:
could not find a "" to execute
could not find a "" to execute
: error: could not find own program executable
To Reproduce
Steps to reproduce the behavior:
- Connect to any database
- Click on "PSQL Tool"
Expected behavior
Something similar to the following message should appear:
C:\Program Files\pgAdmin 4\runtime>"C:\Program Files\pgAdmin 4\runtime\psql.exe" "hos
t=1.2.3.4 port=5432 dbname=dbname user=user sslmode=enable connect_timeout=10
keepalives=1 keepalives_idle=30 keepalives_interval=10 keepalives_count=3" 2>>&1
psql (18.4, server 18.6)
[...]
Error message
could not find a "" to execute
could not find a "" to execute
: error: could not find own program executable
Desktop
- OS: Windows 11 Pro - 26H2 [Versión 10.0.26300.9711 - Spanish]
- pgAdmin version: 9.19
- Mode: Desktop
- Browser: doesn't apply
- Package type: Windows installer (pgadmin4-9.19-x64.exe)
Additional context
Settings for "binary paths" within pgAdmin are set and "validated".
The psql executable from the database (in my case) is NOT in the system's nor user's PATH.
Something similar (although messages where not exactly the same) already happened to me with pgAdmin 9.18.
It didn't occur with pgAdmin 9.17.
The psql.exe executable ("C:\Program Files\pgAdmin 4\runtime\psql.exe") exists:
"C:\Program Files\pgAdmin 4\runtime\psql.exe" --version
psql (PostgreSQL) 18.6
The executable from the database server itself also exists, and reports the same version number:
"C:\Program Files\PostgreSQL\18\bin\psql.exe" --version
psql (PostgreSQL) 18.6 Activityjoanix commented on Nov 2, 2026 Three more pieces of data, in case they help:
-
I have several Python executables in my machine. One of them on the PATH. However, the one running when using pgAdmin is the expected one: C:\Program Files\pgAdmin 4\python - I thing this discards some "possible mess-ups"
-
I have installed pgAdmin 9.19 on a Windows Server running "Windows Server 2022 Standard 21H2" [ 10.0.20348.5761 ]. The same issue happens with this machine.
-
I have installed pgAdmin 9.19 on a Mac running Mac OS 27.0 (Golden Gate). It works as expected.
Lhy-ao commented on Nov 3, 2026 I'm running into this issue as well. I have pgAdmin 4 v9.19 installed on two machines: everything works fine on my Windows 10 setup, but I'm hitting this exact problem on my Windows 11 26H2 machine. Interestingly, I also have v9.18 installed side-by-side on that same Windows 11 box, and it runs without a hitch. elavy-harris commented on Nov 3, 2026 Same issue: pgAdmin 9.19, Windows 11 25H2 (Build 26200.9711), user-specific install (%LOCALAPPDATA%\Programs\pgAdmin
4), server PostgreSQL 17.11. PSQL Tool shows could not find a "" to execute twice, then : error: could not find own program executable.
Checked:
- runtime\psql.exe --version works from a normal terminal (psql (PostgreSQL) 18.6, no warning). Kerberos DLLs
(gssapi64.dll, krbcc64.dll) are present, MIT Kerberos is uninstalled.
- The binary path is set and validated for PG 17 and PG 18.
- Reproduced outside pgAdmin, using pgAdmin's bundled Python and pywinpty with PYWINPTY_BACKEND=1:
PtyProcess.spawn([psql_path, '--version']) prints could not find a "" to execute, thn the version.
Possible cause: 34908c4 (#10453) now spawns psql via PtyProcess.spawn(connection_data, ...). In pywinpty 2.0.x,
spawn() builds cmdline = ' ' + subprocess.list2cmdline(argv[1:]), which leaves out argv[0], so psql gets an empty
program name. I'm not sure why --version carries on while a real connection fails. dmartinezfernandez commented on Nov 4, 2026 Same issue: pgadmin4-9.19-x64, Microsoft Windows 11 v. 10.0.26200, C:/Users/.../AppData/... install. dpage commented on Nov 4, 2026 Lhy-ao commented on Nov 5, 2026 pywinpty appears to behave inconsistently between Windows 10 and Windows 11. It is recommended that this fix also be tested on Windows 10. sk-susi commented on Nov 10, 2026 so , is this issue fixed or we are waiting for any resolution , as i am also getting this issue when upgrading to 9.19 .
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|