Re: Substitute of TRY and CATCH in postgres

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Substitute of TRY and CATCH in postgres
Дата
Msg-id 0fde17f1-3d4c-451a-6746-52ec16d16155@gmx.net
обсуждение исходный текст
Ответ на Substitute of TRY and CATCH in postgres  (aditya desai <admad123@gmail.com>)
Список pgsql-sql
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




В списке pgsql-sql по дате отправления:

Предыдущее
От: aditya desai
Дата:
Сообщение: Substitute of TRY and CATCH in postgres
Следующее
От: Rein Petersen
Дата:
Сообщение: set Assert checking on by session