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: Add note about access permission checks by inherited TRUNCATE an
Date: Thu, 06 Feb 2020 16:11:22 +0000
Message-ID: <E1izjkQ-0002vN-KV@gemulon.postgresql.org> (raw)

Add note about access permission checks by inherited TRUNCATE and LOCK TABLE.

Inherited queries perform access permission checks on the parent
table only. But there are two exceptions to this rule in v12 or before;
TRUNCATE and LOCK TABLE commands through a parent table check
the permissions on not only the parent table but also the children
tables. Previously these exceptions were not documented.

This commit adds the note about these exceptions, into the document.

Back-patch to v9.4. But we don't apply this commit to the master
because commit e6f1e560e4 already got rid of the exception about
inherited TRUNCATE and upcoming commit will do for the exception
about inherited LOCK TABLE.

Author: Amit Langote
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CA+HiwqHfTnMU6SUkyHxCmpHUKk7ERLHCR3vZVq19ZOQBjPBLmQ@mail.gmail.com

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
doc/src/sgml/ddl.sgml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1izjkQ-0002vN-KV@gemulon.postgresql.org>
Permalink:  ../E1izjkQ-0002vN-KV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1izjkQ-0002vN-KV@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: Add note about access permission checks by inherited TRUNCATE an
  In-Reply-To: <E1izjkQ-0002vN-KV@gemulon.postgresql.org>
  References: <E1izjkQ-0002vN-KV@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