From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jonathan davis <haj@idianet.net>
Cc: Tim Allen <tim@proximity.com.au>
Cc: pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] libpq problem (really libpq feature request)
Date: Wed, 28 Jul 1999 10:14:20 -0400
Message-ID: <9713.933171260@sss.pgh.pa.us> (raw)
In-Reply-To: <000a01bed8e0$cd3aa880$0601a8c0@kosovo.idianet.net>
"Jonathan davis" <haj@idianet.net> writes:
> the postgresql client is running under win98 and the server under FreeBSD3.1
> when I'm trying to connect to the server and the server is not running, the
> error message is:
> connectDB() -- socket() failed:
> errno=0
> No error
> and when the password is incorrect, i have the same error
> it is no way to difference the errors !!!
That's because they are the same error --- if the socket() call is
failing then the client is not getting as far as attempting to contact
the server, let alone checking the password. I do not know why you
are not getting a useful errno value; probably another deficiency of
the Windoze socket code :-(. But I'd suggest looking at whether
TCP support is turned on, whether there is a problem linking the socket
support library into the application, etc. Any Win experts here with
an idea what could make socket() fail?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, haj@idianet.net, tim@proximity.com.au, pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] libpq problem (really libpq feature request)
In-Reply-To: <9713.933171260@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox