Re: Error handling inside PL/pgSQL functions - Mailing list pgsql-general

From Jeff Davis
Subject Re: Error handling inside PL/pgSQL functions
Date
Msg-id 1160693923.31966.162.camel@dogma.v10.wvs
Whole thread Raw
In response to Error handling inside PL/pgSQL functions  ("Germán Hüttemann Arza" <ghuttemann@gmail.com>)
List pgsql-general
On Thu, 2006-10-12 at 16:12 -0400, Germán Hüttemann Arza wrote:
> I am writing triggers procedures in PL/pgSQL and I need to handle some
> errors inside the procedures.
> Specifically, I am doing a CAST(char AS integer) and I want to know
> when the char isn't a digit. How can I get do that?
>
> Regards,
>
> --
> Germán Hüttemann

<http://www.postgresql.org/docs/8.1/static/plpgsql-control-
structures.html#PLPGSQL-ERROR-TRAPPING>

Does this help?

Regards,
    Jeff Davis


pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Error handling inside PL/pgSQL functions
Next
From: Jonathan Vanasco
Date:
Subject: Re: bad error message