So at least for now, the patch simply falls back to inserting one row at a time if there are any triggers on the table.
Maybe we want to change that to "fall back to old ways if there are any FOR EACH ROW triggers", since FOR EACH STATEMENT triggers won't be bothered by this optimization.
--
Gurjeet Singh EnterpriseDB Corporation The Enterprise PostgreSQL Company