Error messages - Mailing list pgsql-general

From Mihai Gheorghiu
Subject Error messages
Date
Msg-id 019401c1565a$0cf961c0$6e646464@New6.Travel
Whole thread Raw
List 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?


pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: "Relation x does not exist" error when x does exist
Next
From: "postgresql"
Date:
Subject: Re: connecting to a windows application, visual basic