Add tg_updatedcols to TriggerData
authorPeter Eisentraut <[email protected]>
Mon, 9 Mar 2020 08:22:22 +0000 (09:22 +0100)
committerPeter Eisentraut <[email protected]>
Mon, 9 Mar 2020 08:34:55 +0000 (09:34 +0100)
commit71d60e2aa05157efec28393b15c0b0b9fc1b210c
tree535e192f42bee56fb4978b003cbd22e099ea2f46
parent8f152b6c50c764d4c300e73a535da88cd1b18fa5
Add tg_updatedcols to TriggerData

This allows a trigger function to determine for an UPDATE trigger
which columns were actually updated.  This allows some optimizations
in generic trigger functions such as lo_manage and
tsvector_update_trigger.

Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/11c5f156-67a9-0fb5-8200-2a8018eb2e0c@2ndquadrant.com
contrib/lo/expected/lo.out
contrib/lo/lo.c
contrib/lo/sql/lo.sql
doc/src/sgml/trigger.sgml
src/backend/commands/trigger.c
src/backend/utils/adt/tsvector_op.c
src/include/commands/trigger.h