Re: Error handling: Resume work after error

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Raul Kaubi <raulkaubi(at)gmail(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error handling: Resume work after error
Date: 2020-02-05 15:03:50
Message-ID: 20200205150350.GA5752@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Олег Самойлов 2020-02-05 15:22:22 Re: initialize and use variable in query
Previous Message Raul Kaubi 2020-02-05 14:17:09 Error handling: Resume work after error