Re: Create Produre for DROP row - Mailing list pgsql-general

From Marcos
Subject Re: Create Produre for DROP row
Date
Msg-id 1137764312.1009.12.camel@servidor
Whole thread Raw
In response to Re: Create Produre for DROP row  (Jaime Casanova <systemguards@gmail.com>)
List pgsql-general
> BEGIN
>
>      DELETE FROM .....
>
> EXCEPTION
>        WHEN others THEN
>                   ...........
> END;
>
> documentation:
> http://www.postgresql.org/docs/current/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
>
> a list of errors:
> http://www.postgresql.org/docs/current/static/errcodes-appendix.html
>
> --
> regards,

Thanks.

When I use the EXCEPTION and I return a value numeric or text the
Postgresql shows a error of encoding :(... Invalid Encoding UTF-8 at...

This error only occurs when a EXCEPTION treated by me it's raised.

My database is in UTF8 encoding.

What's happen?

E.g:


EXCEPTION
      WHEN others THEN RETURN 'Error';

Marcos.


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Creation of tsearch2 index is very slow
Next
From: DANTE ALEXANDRA
Date:
Subject: Re: Initdb panic: invalid record offset at 0/0 creating