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 1mjLyh-0002zt-8Y for pgsql-general@arkaria.postgresql.org; Sat, 06 Nov 2021 13:43:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mjLyf-0006rR-UC for pgsql-general@arkaria.postgresql.org; Sat, 06 Nov 2021 13:43:25 +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 1mjLyf-0006rI-Kh for pgsql-general@lists.postgresql.org; Sat, 06 Nov 2021 13:43:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mjLye-0001iF-B7 for pgsql-general@postgresql.org; Sat, 06 Nov 2021 13:43:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1A6DhLbe497191; Sat, 6 Nov 2021 09:43:21 -0400 From: Tom Lane To: Mitar cc: Mark Dilger , Postgres General Subject: Re: Determining if a table really changed in a trigger In-reply-to: References: <6526D693-D520-4B94-B44F-4A2770FBF778@enterprisedb.com> Comments: In-reply-to Mitar message dated "Sat, 06 Nov 2021 08:13:50 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <497189.1636206201.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 06 Nov 2021 09:43:21 -0400 Message-ID: <497190.1636206201@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mitar writes: > Anyone? Any way to determine the number of affected rows in a statement = trigger? Check the size of the transition relation. regards, tom lane