pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonathan davis <haj@idianet.net>
To: Tim Allen <tim@proximity.com.au>
To: pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] libpq problem (really libpq feature request)
Date: Wed, 28 Jul 1999 12:06:03 +0200
Message-ID: <000a01bed8e0$cd3aa880$0601a8c0@kosovo.idianet.net> (raw)


>I think Jonathan is alluding (in a rather obtuse manner :-)) to an issue
>that is on my wishlist also, namely a more systematic way of identifying
>errors. Currently, libpq gives you an error state (no error, nonfatal
>error, or fatal error) and an error message. What would be nice is if
>there was also some sort of error code (eg an integer) that identified the
>exact nature of the problem. And, of course, a published spec of what the
>error codes mean. Then it would be much easier for one's program to know
>what the error was, and, if possible, do something about it. From my point
>of view, there are basically two classes of error - programmer error, and
>resource limitation error (eg network problems, disk space problems). The
>fundamental difference is that for the latter, the user might be able to
>do something about it, whereas for the former, you need to modify the
>code. It would be good if a program could deduce which it was without
>having to do anything silly and dangerous like trying to parse the error
>message.
>
>Tim
>


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 !!!




view thread (4+ messages)  latest in thread

Message-ID: <000a01bed8e0$cd3aa880$0601a8c0@kosovo.idianet.net>
Permalink:  ../000a01bed8e0$cd3aa880$0601a8c0@kosovo.idianet.net/
Also on:    postgresql.org/message-id/000a01bed8e0$cd3aa880$0601a8c0@kosovo.idianet.net

 · 

reply

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: haj@idianet.net, tim@proximity.com.au, pgsql-interfaces@hub.org
  Subject: Re: [INTERFACES] libpq problem (really libpq feature request)
  In-Reply-To: <000a01bed8e0$cd3aa880$0601a8c0@kosovo.idianet.net>

* 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