pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Enable BEFORE row-level triggers for partitioned tables
Date: Wed, 18 Mar 2020 21:59:12 +0000
Message-ID: <E1jEgiW-000253-2a@gemulon.postgresql.org> (raw)

Enable BEFORE row-level triggers for partitioned tables

... with the limitation that the tuple must remain in the same
partition.

Reviewed-by: Ashutosh Bapat
Discussion: https://postgr.es/m/20200227165158.GA2071@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/487e9861d0cf83e9100ad0d0369147db3ef4ea73

Modified Files
--------------
doc/src/sgml/ref/create_trigger.sgml   |  2 +-
doc/src/sgml/trigger.sgml              |  3 +-
src/backend/commands/tablecmds.c       |  3 +-
src/backend/commands/trigger.c         | 40 +++++++++++------
src/backend/partitioning/partdesc.c    |  2 +-
src/include/utils/reltrigger.h         |  1 +
src/test/regress/expected/triggers.out | 78 ++++++++++++++++++++++++++++++++--
src/test/regress/sql/triggers.sql      | 55 +++++++++++++++++++++++-
8 files changed, 161 insertions(+), 23 deletions(-)



Message-ID: <E1jEgiW-000253-2a@gemulon.postgresql.org>
Permalink:  ../E1jEgiW-000253-2a@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jEgiW-000253-2a@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Enable BEFORE row-level triggers for partitioned tables
  In-Reply-To: <E1jEgiW-000253-2a@gemulon.postgresql.org>
  References: <E1jEgiW-000253-2a@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