pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mitar <mmitar@gmail.com>
Cc: Mark Dilger <mark.dilger@enterprisedb.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Determining if a table really changed in a trigger
Date: Sat, 06 Nov 2021 09:43:21 -0400
Message-ID: <497190.1636206201@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKLmikMdcr_hLSJNVy-i+WNiBFftawtV+o4-03=yn0w74fOfEA@mail.gmail.com>
References: <CAKLmikNjiz=zwf9suiAHoBLrRpjLTNsQ=f4PGD3RMFBxzR-3OA@mail.gmail.com>
	<E35E8F8C-4F85-4FFB-8A98-B1924678874E@enterprisedb.com>
	<CAKLmikPA6Nj65X_sbSh6XoROLuY_FeXd8AmpxuM-LWw5EnMxpQ@mail.gmail.com>
	<AD34DA0A-C6F4-4993-953C-36D7D973315D@enterprisedb.com>
	<CAKLmikMy+90f3GSqeMKsiV-qTX0Zc3VyGDCerrOJHo_usV=K4A@mail.gmail.com>
	<6526D693-D520-4B94-B44F-4A2770FBF778@enterprisedb.com>
	<CAKLmikMdcr_hLSJNVy-i+WNiBFftawtV+o4-03=yn0w74fOfEA@mail.gmail.com>

Mitar <mmitar@gmail.com> 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





view thread (24+ messages)  latest in thread

Message-ID: <497190.1636206201@sss.pgh.pa.us>
Permalink:  ../497190.1636206201@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/497190.1636206201@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mmitar@gmail.com, mark.dilger@enterprisedb.com
  Subject: Re: Determining if a table really changed in a trigger
  In-Reply-To: <497190.1636206201@sss.pgh.pa.us>
  References: <CAKLmikNjiz=zwf9suiAHoBLrRpjLTNsQ=f4PGD3RMFBxzR-3OA@mail.gmail.com> <E35E8F8C-4F85-4FFB-8A98-B1924678874E@enterprisedb.com> <CAKLmikPA6Nj65X_sbSh6XoROLuY_FeXd8AmpxuM-LWw5EnMxpQ@mail.gmail.com> <AD34DA0A-C6F4-4993-953C-36D7D973315D@enterprisedb.com> <CAKLmikMy+90f3GSqeMKsiV-qTX0Zc3VyGDCerrOJHo_usV=K4A@mail.gmail.com> <6526D693-D520-4B94-B44F-4A2770FBF778@enterprisedb.com> <CAKLmikMdcr_hLSJNVy-i+WNiBFftawtV+o4-03=yn0w74fOfEA@mail.gmail.com> <497190.1636206201@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox