]> granicus.if.org Git - postgresql/commit
Perform less setup work for AFTER triggers at transaction start.
authorRobert Haas <rhaas@postgresql.org>
Thu, 23 Oct 2014 16:33:02 +0000 (12:33 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 23 Oct 2014 16:33:02 +0000 (12:33 -0400)
commit2781b4bea7db357be59f9a5fd73ca1eb12ff5a79
treec9e12875a953cc76d626fa31df15bdce4c7e701d
parentefbbbbc8b51bacd32e96c3f747dd6aa4c0e444cb
Perform less setup work for AFTER triggers at transaction start.

Testing reveals that the memory allocation we do at transaction start
has small but measurable overhead on simple transactions.  To cut
down on that overhead, defer some of that work to the point when
AFTER triggers are first used, thus avoiding it altogether if they
never are.

Patch by me.  Review by Andres Freund.
src/backend/commands/trigger.c