diff options
| author | Alvaro Herrera | 2023-01-19 11:54:15 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2023-01-19 11:54:15 +0000 |
| commit | 438e6b7240905c8055f9e221187f2ac818876169 (patch) | |
| tree | 4e21205d2d7b5e7fcb5ad5b958097d83a9ae7ea3 /src/backend/optimizer/util | |
| parent | 48880840f18cb75fcaecc77b5e7816b92c27157b (diff) | |
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 <[email protected]>
Reported-by: Justin Pryzby <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/optimizer/util')
| -rw-r--r-- | src/backend/optimizer/util/relnode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/backend/optimizer/util/relnode.c b/src/backend/optimizer/util/relnode.c index 75bc20c7c98..0a5632699d6 100644 --- a/src/backend/optimizer/util/relnode.c +++ b/src/backend/optimizer/util/relnode.c @@ -500,7 +500,6 @@ find_join_rel(PlannerInfo *root, Relids relids) * * Otherwise these fields are left invalid, so GetForeignJoinPaths will not be * called for the join relation. - * */ static void set_foreign_rel_properties(RelOptInfo *joinrel, RelOptInfo *outer_rel, |
