joininfo.h 856 B

123456789101112131415161718192021222324252627282930
  1. /*-------------------------------------------------------------------------
  2. *
  3. * joininfo.h
  4. * prototypes for joininfo.c.
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/optimizer/joininfo.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef JOININFO_H
  15. #define JOININFO_H
  16. #include "nodes/pathnodes.h"
  17. extern bool have_relevant_joinclause(PlannerInfo *root,
  18. RelOptInfo *rel1, RelOptInfo *rel2);
  19. extern void add_join_clause_to_rels(PlannerInfo *root,
  20. RestrictInfo *restrictinfo,
  21. Relids join_relids);
  22. extern void remove_join_clause_from_rels(PlannerInfo *root,
  23. RestrictInfo *restrictinfo,
  24. Relids join_relids);
  25. #endif /* JOININFO_H */