no error numbers - only error messages?

From: Sander Roobol <sander(at)blog(dot)at>
To: pgsql-general(at)postgresql(dot)org
Subject: no error numbers - only error messages?
Date: 2002-07-07 13:09:12
Message-ID: 20020707130912.GA4562@lxr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I'm having the following problem:
I'm talking to PostGreSQL using a variety of bindings (libpq, PHP), all
non-interactive.
If something goes wrong with one of my queries, I can ask PostGreSQL
to give an errormessage.
Unfortunately, errormessages are hard to parse. MySQL for example, works
around that problem by providing an error number on request, but as far
as I know, PostGreSQL doesn't.

Did I overlook something or does PostGreSQL really have no error
numbers? If not, is there any way I reliably parse the error messages?

Thanks for any help,

Sander

P.S. I'm not subscribed to the list, so please CC me when replying.
Thanks!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hiroki Takada 2002-07-07 14:39:36 Re: Install: Japanese: What options needed?
Previous Message Carmen Wai 2002-07-07 12:37:10 Error code return within function?