Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qID65-0000hx-1Y for pgsql-sql@arkaria.postgresql.org; Sat, 08 Jul 2023 18:55:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qID63-0008J9-Fp for pgsql-sql@arkaria.postgresql.org; Sat, 08 Jul 2023 18:55:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qID63-0008Iz-74 for pgsql-sql@lists.postgresql.org; Sat, 08 Jul 2023 18:55:55 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qID5w-002xT5-J2 for pgsql-sql@lists.postgresql.org; Sat, 08 Jul 2023 18:55:54 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-51d805cb33aso4145950a12.3 for ; Sat, 08 Jul 2023 11:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688842546; x=1691434546; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=WseOcci2FbyrudQd7yEg0v15Xs787jt0hhbx4K2AnK0=; b=LMuAc8AJtmQqooxRErcW+T0G9M+vA7r6X6tOzU71sMbZ9JnXxQoewMzvDhPbQB8WVJ Q7LNB3LlvDjx7XDA3eh7cqIqD3hex5UnoTMfiHNPnbeOnCMf4AKpfiXIQMYw1nGuJVZJ ly6aHRLY7c7b0hC3gm3QRDHTDj9nFC976kTSf5rEVmElyygnX9i3Lzrv32M5GegiLfFd kVUMyKMWTQyqrEUeJvSG2dTLFXdE4TyX2leY6WTMokkT91lmr4zfQzAPq1sgtexDMqee M5AlfWz4JRMua0cHQiIxnkaw9szyG9w1HbIbd506k9dHQ94kx0789lrLQmvT9mag4LQe 1ofA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688842546; x=1691434546; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=WseOcci2FbyrudQd7yEg0v15Xs787jt0hhbx4K2AnK0=; b=hrGdHJejSDOHDDnIIGyYcOGwyRCIUSQckA1KCtL6KzoJdJ92UgvK5ZDhHZ7gviaFJw wqnkV1wxQCBv6CM+uZtt51yhodEKeLxr7ADKckNZLjvIgyjx+agFvGFzuFnlX435GSDU reXnoNrwDMp0gTobCI5jn73pC3isBz8K94Mfs9ku1Ca9mIOuO6lMQEq21L/j5ZsjFUOo HVrcfoHWNMVr1dgbeOXvCU9oSR/RbywvDuWcZKVCj5ma6jyrJGsKOr8pQjH/E474gzM9 AnnIN2Jokowh6KI72ZLX0z/qpOkPR35hK/KOQwaaHdSZxmn0OKc8vpPrkPsHuj+g9obS xYbQ== X-Gm-Message-State: ABy/qLaRn+9W3FG3831lOHDv4E+2thAFLLWAJVNHlhUzU+aVajI+l3sS IxgA+cEhHrA55031/hwumBkILv/sK2jbLjvcTwIlO8LG X-Google-Smtp-Source: APBJJlEkKhMAAgS7WMtPiN+NVeghMA+7MiQ0SQPRiVCj7hA2mLdTBnNa73qKliB7syt62P6oyB+Z8lSgqdg0Eev0Dms= X-Received: by 2002:a17:906:f55:b0:988:4dc:e3a3 with SMTP id h21-20020a1709060f5500b0098804dce3a3mr5645467ejj.31.1688842546228; Sat, 08 Jul 2023 11:55:46 -0700 (PDT) MIME-Version: 1.0 From: Shaozhong SHI Date: Sat, 8 Jul 2023 19:55:35 +0100 Message-ID: Subject: Finding out types of error To: pgsql-sql Content-Type: multipart/alternative; boundary="0000000000000cb2bd05fffe4c07" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000000cb2bd05fffe4c07 Content-Type: text/plain; charset="UTF-8" Having the following: Begin insert into a_table select * from a_function Exception Raise note 'Skipped" This works. Can it trap types of errors to find out what is wrong Regards, David --0000000000000cb2bd05fffe4c07 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Having the following:

Begin
<= br>
=C2=A0 =C2=A0insert into a_table select * from a_function

Exception
=C2=A0 =C2=A0Raise note 'Skip= ped"



This works= .

Can it trap types of errors to find out what is = wrong

Regards,

David
--0000000000000cb2bd05fffe4c07--