pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add tg_updatedcols to TriggerData
Date: Mon, 09 Mar 2020 08:38:54 +0000
Message-ID: <E1jBDw6-0005kc-Mr@gemulon.postgresql.org> (raw)

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 <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/flat/11c5f156-67a9-0fb5-8200-2a8018eb2e0c@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/71d60e2aa05157efec28393b15c0b0b9fc1b210c

Modified Files
--------------
contrib/lo/expected/lo.out          |  8 ++++++++
contrib/lo/lo.c                     |  3 ++-
contrib/lo/sql/lo.sql               |  5 +++++
doc/src/sgml/trigger.sgml           | 25 +++++++++++++++++++++++++
src/backend/commands/trigger.c      |  6 ++++++
src/backend/utils/adt/tsvector_op.c | 29 +++++++++++++++++++++--------
src/include/commands/trigger.h      |  1 +
7 files changed, 68 insertions(+), 9 deletions(-)



Message-ID: <E1jBDw6-0005kc-Mr@gemulon.postgresql.org>
Permalink:  ../E1jBDw6-0005kc-Mr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jBDw6-0005kc-Mr@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Add tg_updatedcols to TriggerData
  In-Reply-To: <E1jBDw6-0005kc-Mr@gemulon.postgresql.org>
  References: <E1jBDw6-0005kc-Mr@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox