pgsql: Perform less setup work for AFTER triggers at transaction start.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Perform less setup work for AFTER triggers at transaction start.
Дата
Msg-id E1XhLR9-0004NK-Fj@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Perform less setup work for AFTER triggers at transaction start.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2781b4bea7db357be59f9a5fd73ca1eb12ff5a79

Modified Files
--------------
src/backend/commands/trigger.c |  428 ++++++++++++++++++++++------------------
1 file changed, 232 insertions(+), 196 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Remove the unused argument of PSQLexec().
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve ispell dictionary's defenses against bad affix files.