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 — 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 - #10714

New issue
Copy link
New issue
Copy link
Closed
Closed
PSQL tool not working as expected on pgAdmin 9.19 -#10714
Copy link
Labels
Bug

Description

@joanix
joanix
opened on Nov 2, 2026
Issue body actions

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

  1. Connect to any database
  2. 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

Activity

  1. joanix
    added
    Bug
    on Nov 2, 2026
  2. joanix commented on Nov 2, 2026

    @joanix
    joanix
    on Nov 2, 2026
    Author
    More actions

    Three more pieces of data, in case they help:

    1. 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"

    2. 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.

    3. I have installed pgAdmin 9.19 on a Mac running Mac OS 27.0 (Golden Gate). It works as expected.

  3. Lhy-ao commented on Nov 3, 2026

    @Lhy-ao
    Lhy-ao
    on Nov 3, 2026
    More actions

    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.

  4. elavy-harris commented on Nov 3, 2026

    @elavy-harris
    elavy-harris
    on Nov 3, 2026
    More actions

    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.

  5. dmartinezfernandez commented on Nov 4, 2026

    @dmartinezfernandez
    dmartinezfernandez
    on Nov 4, 2026
    More actions

    Same issue: pgadmin4-9.19-x64, Microsoft Windows 11 v. 10.0.26200, C:/Users/.../AppData/... install.

  6. dpage commented on Nov 4, 2026

    @dpage
    dpage
    on Nov 4, 2026
    Contributor
    More actions

    Fixed by #10725, merged as df554c7.

  7. dpage
    closed this as completedon Nov 4, 2026
  8. Lhy-ao commented on Nov 5, 2026

    @Lhy-ao
    Lhy-ao
    on Nov 5, 2026
    More actions

    pywinpty appears to behave inconsistently between Windows 10 and Windows 11. It is recommended that this fix also be tested on Windows 10.

  9. dpage
    marked PSQL Tool fails on Windows in 9.19 with could not find a "" to execute (works in 9.18) #10759 as a duplicate of this issue on Nov 6, 2026
  10. sk-susi commented on Nov 10, 2026

    @sk-susi
    sk-susi
    on Nov 10, 2026
    More actions

    so , is this issue fixed or we are waiting for any resolution , as i am also getting this issue when upgrading to 9.19 .

  11. dpage
    added a commit that references this issue on Nov 13, 2026

    Bundle Python 3.15.2 in the Windows and macOS packages, and move to p…

    364dcc9
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.