pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add object TRUNCATE hook
Date: Sat, 23 Nov 2019 15:39:53 +0000
Message-ID: <E1iYXVp-0000gR-RV@gemulon.postgresql.org> (raw)

Add object TRUNCATE hook

All operations with acl permissions checks should have a corresponding hook
so that, for example, mandatory access control (MAC) may be enforced by an
extension. The command TRUNCATE is missing this hook, so add it. Patch by
Yuli Khodorkovskiy with some editorialization by me. Based on the discussion
not back-patched. A separate patch will exercise the hook in the sepgsql
extension.

Author: Yuli Khodorkovskiy
Reviewed-by: Joe Conway
Discussion: https://postgr.es/m/CAFL5wJcomybj1Xdw7qWmPJRpGuFukKgNrDb6uVBaCMgYS9dkaA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f7a2002e82cfc639d1b6df89012f5d6c623ad545

Modified Files
--------------
src/backend/catalog/objectaccess.c | 17 +++++++++++++++++
src/backend/commands/tablecmds.c   |  2 ++
src/include/catalog/objectaccess.h | 14 +++++++++++++-
3 files changed, 32 insertions(+), 1 deletion(-)



Message-ID: <E1iYXVp-0000gR-RV@gemulon.postgresql.org>
Permalink:  ../E1iYXVp-0000gR-RV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iYXVp-0000gR-RV@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: mail@joeconway.com
  Subject: Re: pgsql: Add object TRUNCATE hook
  In-Reply-To: <E1iYXVp-0000gR-RV@gemulon.postgresql.org>
  References: <E1iYXVp-0000gR-RV@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