I'm trying to run psql on Windows 2000, but it prints an error message
saying:

psql: could not create socket: An address incompatible with the requested
protocol was used.
 (0x0000273F)

Debugging a small application I have written myself, I have discovered that
the function 'socket' inside the database connection function fails with the
error: "The specified address family is not supported".

 From the cygwin environment, psql is running fine, and I have properly
installed cygipc.

Does anyone know that problem?

Thank you,
Avishay Orpaz



Sun, 15 Sep 2002 00:50:28 +0200
"Avishay Orpaz" <avishorp@walla.co.il>
Problem with psql on Win32
"Avishay Orpaz" <avishorp@walla.co.il> writes:
> I'm trying to run psql on Windows 2000, but it prints an error message
> saying:

> psql: could not create socket: An address incompatible with the requested
> protocol was used.
>  (0x0000273F)

> Debugging a small application I have written myself, I have discovered that
> the function 'socket' inside the database connection function fails with the
> error: "The specified address family is not supported".

Try "psql -h localhost" (or set PGHOST environment variable).  I don't
think Unix-socket connections exist in Windows.

			regards, tom lane

Mon, 16 Sep 2002 11:28:17 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: Problem with psql on Win32 