agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Thomas Kellerer <shammat@gmx.net>
To: pgsql-sql@lists.postgresql.org
Subject: Re: Substitute of TRY and CATCH in postgres
Date: Mon, 19 Apr 2021 15:32:41 +0200
Message-ID: <0fde17f1-3d4c-451a-6746-52ec16d16155@gmx.net> (raw)
In-Reply-To: <CAN0SRDGms=dHCsgrdHdya6ygFRNRsBj6of1=O3+wSVbSt-u2uA@mail.gmail.com>
References: <CAN0SRDGms=dHCsgrdHdya6ygFRNRsBj6of1=O3+wSVbSt-u2uA@mail.gmail.com>
aditya desai schrieb am 19.04.2021 um 15:21:
> We have a MSSQL proc which reads as below. We have to convert it to
> Postgres using TRY CATCH. I googled about it and could not find
> significant information. Can someone help?
You need an exception block:
https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
view thread (2+ messages)
Message-ID: <0fde17f1-3d4c-451a-6746-52ec16d16155@gmx.net>
Permalink: ../0fde17f1-3d4c-451a-6746-52ec16d16155@gmx.net/
Also on: postgresql.org/message-id/0fde17f1-3d4c-451a-6746-52ec16d16155@gmx.net
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: shammat@gmx.net, pgsql-sql@lists.postgresql.org
Subject: Re: Substitute of TRY and CATCH in postgres
In-Reply-To: <0fde17f1-3d4c-451a-6746-52ec16d16155@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox