gooderp18绿色标准版
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

49 lines
1.7KB

  1. /*-------------------------------------------------------------------------
  2. *
  3. * restrictinfo.h
  4. * prototypes for restrictinfo.c.
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/optimizer/restrictinfo.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef RESTRICTINFO_H
  15. #define RESTRICTINFO_H
  16. #include "nodes/pathnodes.h"
  17. /* Convenience macro for the common case of a valid-everywhere qual */
  18. #define make_simple_restrictinfo(clause) \
  19. make_restrictinfo(clause, true, false, false, 0, NULL, NULL, NULL)
  20. extern RestrictInfo *make_restrictinfo(Expr *clause,
  21. bool is_pushed_down,
  22. bool outerjoin_delayed,
  23. bool pseudoconstant,
  24. Index security_level,
  25. Relids required_relids,
  26. Relids outer_relids,
  27. Relids nullable_relids);
  28. extern RestrictInfo *commute_restrictinfo(RestrictInfo *rinfo, Oid comm_op);
  29. extern bool restriction_is_or_clause(RestrictInfo *restrictinfo);
  30. extern bool restriction_is_securely_promotable(RestrictInfo *restrictinfo,
  31. RelOptInfo *rel);
  32. extern List *get_actual_clauses(List *restrictinfo_list);
  33. extern List *extract_actual_clauses(List *restrictinfo_list,
  34. bool pseudoconstant);
  35. extern void extract_actual_join_clauses(List *restrictinfo_list,
  36. Relids joinrelids,
  37. List **joinquals,
  38. List **otherquals);
  39. extern bool join_clause_is_movable_to(RestrictInfo *rinfo, RelOptInfo *baserel);
  40. extern bool join_clause_is_movable_into(RestrictInfo *rinfo,
  41. Relids currentrelids,
  42. Relids current_and_outer);
  43. #endif /* RESTRICTINFO_H */
上海开阖软件有限公司 沪ICP备12045867号-1