mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
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
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user