Hi! On Sat, Nov 6, 2021 at 2:43 PM Tom Lane <tgl@xxxxxxxxxxxxx> wrote: > Mitar <mmitar@xxxxxxxxx> writes: > > Anyone? Any way to determine the number of affected rows in a statement trigger? > > Check the size of the transition relation. Yes, this is what we are currently doing, but it looks very inefficient if you want just the number, no? Or even if you want to know if it is non-zero or zero. Mitar -- http://mitar.tnode.com/ https://twitter.com/mitar_m