pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Support TRUNCATE triggers on foreign tables.
Date: Tue, 12 Jul 2022 00:19:16 +0000
Message-ID: <E1oB3cR-002Lxl-9B@gemulon.postgresql.org> (raw)

Support TRUNCATE triggers on foreign tables.

Now some foreign data wrappers support TRUNCATE command.
So it's useful to support TRUNCATE triggers on foreign tables for
audit logging or for preventing undesired truncation.

Author: Yugo Nagata
Reviewed-by: Fujii Masao, Ian Lawrence Barwick
Discussion: https://postgr.es/m/20220630193848.5b02e0d6076b86617a915682@sraoss.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3b00a944a9b3847fb02dae7c9ea62fe0b211b396

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 9 ++++++---
contrib/postgres_fdw/sql/postgres_fdw.sql      | 5 +++--
doc/src/sgml/ref/create_trigger.sgml           | 4 ++--
src/backend/commands/trigger.c                 | 7 -------
4 files changed, 11 insertions(+), 14 deletions(-)



Message-ID: <E1oB3cR-002Lxl-9B@gemulon.postgresql.org>
Permalink:  ../E1oB3cR-002Lxl-9B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oB3cR-002Lxl-9B@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: fujii@postgresql.org
  Subject: Re: pgsql: Support TRUNCATE triggers on foreign tables.
  In-Reply-To: <E1oB3cR-002Lxl-9B@gemulon.postgresql.org>
  References: <E1oB3cR-002Lxl-9B@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