Remove some dead code in selfuncs.c
commit438e6b7240905c8055f9e221187f2ac818876169
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 Jan 2023 11:54:15 +0000 (19 12:54 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 19 Jan 2023 11:54:15 +0000 (19 12:54 +0100)
tree4e21205d2d7b5e7fcb5ad5b958097d83a9ae7ea3
parent48880840f18cb75fcaecc77b5e7816b92c27157b
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
src/backend/optimizer/util/relnode.c
src/backend/utils/adt/selfuncs.c