From 71d60e2aa05157efec28393b15c0b0b9fc1b210c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 9 Mar 2020 09:22:22 +0100 Subject: 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 Discussion: https://www.postgresql.org/message-id/flat/11c5f156-67a9-0fb5-8200-2a8018eb2e0c@2ndquadrant.com --- src/include/commands/trigger.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/commands/trigger.h') diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h index 5d691926433..a40ddf5db52 100644 --- a/src/include/commands/trigger.h +++ b/src/include/commands/trigger.h @@ -39,6 +39,7 @@ typedef struct TriggerData TupleTableSlot *tg_newslot; Tuplestorestate *tg_oldtable; Tuplestorestate *tg_newtable; + const Bitmapset *tg_updatedcols; } TriggerData; /* -- cgit v1.2.3