Re: Inconsistent trigger behavior between two temporal leftovers

Zsolt Parragi <zsolt.parragi@percona.com>

From: Zsolt Parragi <zsolt.parragi@percona.com>
To: Sergei Patiakin <sergei.patiakin@enterprisedb.com>
Cc: pgsql-hackers@lists.postgresql.org, "Paul A. Jungwirth" <pj@illuminatedcomputing.com>, Peter Eisentraut <peter@eisentraut.org>
Date: 2026-05-05T21:16:24Z
Lists: pgsql-hackers
Hello

+ /*
+ * Re-copy the original row into leftoverSlot because
+ * ExecInsert may pass leftoverSlot to BEFORE INSERT
+ * triggers, which can modify the slot contents.
+ */

Shouldn't this mention BEFORE ROW INSERT triggers? Everywhere else the
comments/commit message/test is specific about this.