On Sat, Jul 8, 2023 at 11:55 AM Shaozhong SHI <shishaozhong(at)gmail(dot)com>
wrote:
>
> Can it trap types of errors to find out what is wrong
>
>
That is what "condition" is for.
https://www.postgresql.org/docs/current/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
David J.