Enable BEFORE row-level triggers for partitioned tables

Enterprise / PostgreSQL - Alvaro Herrera [alvh.no-ip.org] - 18 March 2020 21:58 EDT

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

487e9861d0 Enable BEFORE row-level triggers for partitioned tables
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(-)

Upstream: git.postgresql.org


  • Share