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 1mX6Kj-0001tf-7M for pgsql-general@arkaria.postgresql.org; Sun, 03 Oct 2021 18:35:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mX6Kg-0002HZ-L0 for pgsql-general@arkaria.postgresql.org; Sun, 03 Oct 2021 18:35:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mX6Kg-0002HR-6L for pgsql-general@lists.postgresql.org; Sun, 03 Oct 2021 18:35:30 +0000 Received: from mout.gmx.net ([212.227.15.15]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mX6Kb-0007LM-Iz for pgsql-general@lists.postgresql.org; Sun, 03 Oct 2021 18:35:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1633286123; bh=Gzdf5TybJv1eI4FNMXakDJh5+b/9EyqW1xfVOr6VoEc=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=V6OQn6sLgOHTQmqf6SU2QfK83K7YDLvdJaJihMpqODcYgyaQKFANv6TwPt+2NUFgO +EtTmBG6DiinR0uJVydpPiW1OXaZ4cUWmfUg1qB5S5Tfw00MYOGxiO5QPfKJ5zl9RF trfSIc4FGozPaZ1t9WNVUDyi0xc5XwiovsRfmeEA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermes ([89.14.93.27]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mr9Fs-1nC9Vc2yO6-00oHrb for ; Sun, 03 Oct 2021 20:35:23 +0200 Received: from ncq by hermes with local (Exim 4.94.2) (envelope-from ) id 1mX6KN-00066d-Mi for pgsql-general@lists.postgresql.org; Sun, 03 Oct 2021 20:35:13 +0200 Date: Sun, 3 Oct 2021 20:35:01 +0200 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: PostgreSQL CHECK Constraint Message-ID: References: <42aaef2a-6f55-0449-5a35-d6507d333af1@netnea.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) Sender: X-Provags-ID: V03:K1:9oxGMXMA5i/ZugRkN27l+maFd1PU0ofuJDEP6J+f87BctMao3XP Vp8u92fLglo3yn/Rb+uZW3ZL73jyLPjkCtqJgp8h04gG6zK50rIKwvCEcKfMyUcCJJG8+l5 /zgcUbrfxMhZYmSLdxEHyaAV7A0zokWPGfpYbtdjNDE03oH+XWENPfBY3xZWt24sZov9VID NqS/sSgJ6+YQOQpbAzCnQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:QVadeGxWgQs=:6CSEYy/fKWkZUWuPgNdcw6 JOloFbK1xmhEbY2cyoy9Jo5Tahf63y5XUMze7Jxj/qlakoUVTboQIVYkyzpTyGJQSlaBXPcRT Tehw7EPQCmxZOyath0FQAjue4mYtoaV643/3slap5dm/YYwPyeMdjbwYwAafCvvAw6CWLHkXM CFcKgV5zGf9mFQrP9In7zHegfHkc1caJFx6sOpezl+AM7RBnef1MWPmyRnD4V1CnNCz6MSPlR RmV4i62w5Ri8VNw9EoeA8chjEJbHDmvf7E37KgiYvt9M1ZGehqIHd3ew/abEAE41EXVf4JE0y aBhDQOhUGCeb6oZ3/kFFnLnEwSEowuHPE0DvjmgMUIHwcoXa7z12AgjLlwgNBt+EYn1k3sLZE Ogfr03BB0tt6T335KgmU8HUFOY+fbO1ETkgu2wVjAGpDziyXIYsqQLvymycrz/QMd8VD0M3Nh uNFrBSlzPE2IcKsRgDyoxgq6ZN2OlV842TNype6dxVDFg2S1FgOLSJm2G+qMY8WZDll04aJl+ YRcVDaBvXzz8nqiEAQYmmqvS40L21RYc+pjhCgvssZ0zqrkKHV584f0BslgFjeqpbtyIzWARk JO+Wqqh5hFQwMy9nVoNV5kynxpp+99i9Vk9W10LZdLtDRDKyP9hIgOsY0ekLPGklXzo/GigYC 0XGZySRMT1oqjHhz4+MzwvU17fS/cq8Amsh0etqnitO1YBQX2xEb2uBrtZY1G5j2JDwQ/jRaV WgINQepmCHpARWV/kI8I93JUqyK1aVn0r8DGmgRvcJTQFPAUW/sc2jKyvoNxUj8j0Me/qpMH0 +o4ou7uqcfSxf4tuSplxZYlR3agDksVkSkDK02BEas9PLZEdsmPhTEkO2KYHm5ZdAfJ02dtZ+ B8HlP5fLOL1qW3zqHo+WcrrmcPxrQ32xR+sVXKjyvRjO7HluPqPpdqRQH1bbwat9p64TGJrQ0 S4JzYCeCaTWv99AUe0dfHTOVtOkukjPgzWuIW8lqUbJ7nFzJa0SIYru+j2Z9KcTuFvseaLAIG h7tZ49dGpQKLyqTS0Yd1Tp43y56frnuZItwHy45qzCzvmwAajgg1E1m/+6XeI5T4xYbZruCsm 91IHpIbQ2/oXMk= Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am Sun, Oct 03, 2021 at 07:16:32PM +0100 schrieb Shaozhong SHI: > That is interesting. Can errors be captured and saved as data with > scripting? Depends on what the script does. If the script runs (or is written in) Python the canonical PG driver (psycopg2/3) will give you such data. Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B