DEV Community

Cover image for Postgres psql on Windows: SSL SYSCALL error: EOF detected expected authentication request from server, but received H

Postgres psql on Windows: SSL SYSCALL error: EOF detected expected authentication request from server, but received H

Some recent (as of july 2025) Windows update has apparently broken old version of Postgres psql binaries, when trying to connect to an external database with SSL enabled, you may get the following kind of error:

pg_restore: error: connection to database "xxx" failed: SSL SYSCALL error: EOF detected
expected authentication request from server, but received H"

The solution is "simply" to use the latest version of the psql binary.
Version 17 has been tested ok.

This of course also apply to pg_dump/pg_restore.

Top comments (0)