Error parsing

From: Erik Ronström <kvarken(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Error parsing
Date: 2003-05-24 01:09:48
Message-ID: 20030524010948.59799.qmail@web13806.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

Is there any way to get information about the last error/exception? My
perl application needs to know if a delete failure (for example) is due
to a data integrity violation or something else.

There is always the error message of course, but it seems tricky,
unsafe and ineffective to parse the error string. Is there a better
way?

Erik

__________________________________________________
It's Samaritans' Week. Help Samaritans help others.
Call 08709 000032 to give or donate online now at http://www.samaritans.org/support/donations.shtm

Browse pgsql-general by date

  From Date Subject
Next Message PeterKorman 2003-05-24 01:19:31 ALTER LANGUAGE?
Previous Message Martijn van Oosterhout 2003-05-24 01:09:22 Re: Query Output Formatting - Y/N Depending On Count