Error messages

From: "Mihai Gheorghiu" <tanethq(at)earthlink(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Error messages
Date: 2001-10-16 15:46:19
Message-ID: 019401c1565a$0cf961c0$6e646464@New6.Travel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a function/trigger. Within this function I perform, say, a cast. Is
there any way of testing whether the cast was successful (e.g. text to
number, and the text is not numeric only results in an error), so that I can
proceed accordingly? What about an UPDATE (not wait until the end
COMMIT/ROLLBACK)?
So, the general question might be: how can I catch backend errors at the
source?

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-10-16 15:55:32 Re: "Relation x does not exist" error when x does exist
Previous Message Flancer 2001-10-16 15:24:12 To Postgres Devs : Wouldn't changing the select limit syntax ....