-
- Downloads
Tweak querytree-dependency-extraction code so that columns of tables
that are explicitly JOINed are not considered dependencies unless they are actually used in the query: mere presence in the joinaliasvars list of a JOIN RTE doesn't count as being used. The patch touches a number of files because I needed to generalize the API of query_tree_walker to support an additional flag bit, but the changes are otherwise quite small.
Showing
- src/backend/catalog/dependency.c 25 additions, 4 deletionssrc/backend/catalog/dependency.c
- src/backend/optimizer/prep/prepunion.c 2 additions, 2 deletionssrc/backend/optimizer/prep/prepunion.c
- src/backend/optimizer/util/clauses.c 25 additions, 19 deletionssrc/backend/optimizer/util/clauses.c
- src/backend/optimizer/util/var.c 5 additions, 5 deletionssrc/backend/optimizer/util/var.c
- src/backend/rewrite/rewriteDefine.c 3 additions, 2 deletionssrc/backend/rewrite/rewriteDefine.c
- src/backend/rewrite/rewriteHandler.c 4 additions, 3 deletionssrc/backend/rewrite/rewriteHandler.c
- src/backend/rewrite/rewriteManip.c 17 additions, 17 deletionssrc/backend/rewrite/rewriteManip.c
- src/include/optimizer/clauses.h 8 additions, 3 deletionssrc/include/optimizer/clauses.h
Loading
Please register or sign in to comment