From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove some dead code in selfuncs.c
Date: Thu, 19 Jan 2023 12:03:51 +0000
Message-ID: <E1pITe3-004ReV-5B@gemulon.postgresql.org> (raw)
Remove some dead code in selfuncs.c
RelOptInfo.userid is the same for all relations in a given inheritance
tree, so the code in examine_variable() and example_simple_variable()
that repeats the ACL checks on the root parent rel instead of a given
leaf child relations need not recompute userid too.
Author: Amit Langote <amitlangote09@gmail.com>
Reported-by: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://postgr.es/m/20221210201753.GA27893@telsasoft.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/438e6b7240905c8055f9e221187f2ac818876169
Modified Files
--------------
src/backend/optimizer/util/relnode.c | 1 -
src/backend/utils/adt/selfuncs.c | 42 ++++++++++++++----------------------
2 files changed, 16 insertions(+), 27 deletions(-)
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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Remove some dead code in selfuncs.c
In-Reply-To: <E1pITe3-004ReV-5B@gemulon.postgresql.org>
References: <E1pITe3-004ReV-5B@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