Re: Error handling: Resume work after error - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: Error handling: Resume work after error
Date
Msg-id 20200205150350.GA5752@depesz.com
Whole thread Raw
In response to Error handling: Resume work after error  (Raul Kaubi <raulkaubi@gmail.com>)
Responses Re: Error handling: Resume work after error
List pgsql-general
On Wed, Feb 05, 2020 at 04:17:09PM +0200, Raul Kaubi wrote:
> Let's say I want my procedure/function to resume work after specific error
> ( duplicate_table ).
> Is it possible to resume work after error..?
> EXCEPTION
> > WHEN duplicate_table then ......;

Sure you can:

https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING

Best regards,

depesz




pgsql-general by date:

Previous
From: Raul Kaubi
Date:
Subject: Error handling: Resume work after error
Next
From: Олег Самойлов
Date:
Subject: Re: initialize and use variable in query