Re: Error handling inside PL/pgSQL functions

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Germán Hüttemann Arza <ghuttemann(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Error handling inside PL/pgSQL functions
Date: 2006-10-12 22:58:43
Message-ID: 1160693923.31966.162.camel@dogma.v10.wvs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Vanasco 2006-10-12 23:12:10 Re: bad error message
Previous Message Jeff Davis 2006-10-12 22:53:25 Re: Error handling inside PL/pgSQL functions