public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Shaozhong SHI <[email protected]>
Cc: pgsql-sql <[email protected]>
Subject: Re: Finding out types of error
Date: Sat, 8 Jul 2023 11:58:52 -0700
Message-ID: <CAKFQuwaaguuSt_ocFa=aCX1041h_ZNyQOCsJAukHD_pZS-_3bw@mail.gmail.com> (raw)
In-Reply-To: <CA+i5JwY8rkbXzLq62wh6mEj2-Q8cxoRjO7hDvEtaQqiogE05Aw@mail.gmail.com>
References: <CA+i5JwY8rkbXzLq62wh6mEj2-Q8cxoRjO7hDvEtaQqiogE05Aw@mail.gmail.com>

On Sat, Jul 8, 2023 at 11:55 AM Shaozhong SHI <[email protected]>
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.


view thread (2+ messages)

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Finding out types of error
  In-Reply-To: <CAKFQuwaaguuSt_ocFa=aCX1041h_ZNyQOCsJAukHD_pZS-_3bw@mail.gmail.com>

* 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