From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add OAT hook calls for more subcommands of ALTER TABLE
Date: Wed, 16 Aug 2023 23:56:29 +0000
Message-ID: <E1qWQNJ-000VA6-Bb@gemulon.postgresql.org> (raw)
Add OAT hook calls for more subcommands of ALTER TABLE
The OAT hooks are added in ALTER TABLE for the following subcommands:
- { ENABLE | DISABLE | [NO] FORCE } ROW LEVEL SECURITY
- { ENABLE | DISABLE } TRIGGER
- { ENABLE | DISABLE } RULE. Note that there was hook for pg_rewrite,
but not for relation ALTER'ed in pg_class.
Tests are added to test_oat_hook for all the subcommand patterns gaining
hooks here. Based on an ask from Legs Mansion.
Discussion: https://postgr.es/m/tencent_083B3850655AC6EE04FA0A400766D3FE8309@qq.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/352ea3acf8a2d6e0490eb005bce38303de4564dd
Modified Files
--------------
src/backend/commands/tablecmds.c | 12 ++
src/test/modules/test_oat_hooks/Makefile | 2 +-
.../test_oat_hooks/expected/alter_table.out | 163 +++++++++++++++++++++
src/test/modules/test_oat_hooks/meson.build | 1 +
.../modules/test_oat_hooks/sql/alter_table.sql | 48 ++++++
5 files changed, 225 insertions(+), 1 deletion(-)
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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add OAT hook calls for more subcommands of ALTER TABLE
In-Reply-To: <E1qWQNJ-000VA6-Bb@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