Support TRUNCATE triggers on foreign tables.
commit3b00a944a9b3847fb02dae7c9ea62fe0b211b396
authorFujii Masao <fujii@postgresql.org>
Tue, 12 Jul 2022 00:18:02 +0000 (12 09:18 +0900)
committerFujii Masao <fujii@postgresql.org>
Tue, 12 Jul 2022 00:18:02 +0000 (12 09:18 +0900)
treea2abdd3d3fe79c4ac2133d2933f01d9ecc0d5bfa
parent14168d3c62fa90f1ec447f873f0e4df16a57a717
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
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/sql/postgres_fdw.sql
doc/src/sgml/ref/create_trigger.sgml
src/backend/commands/trigger.c