PostgreSQL Source Code
git master
|
#include "nodes/pathnodes.h"
Go to the source code of this file.
Macros | |
#define | make_simple_restrictinfo(root, clause) |
Functions | |
RestrictInfo * | make_restrictinfo (PlannerInfo *root, Expr *clause, bool is_pushed_down, bool has_clone, bool is_clone, bool pseudoconstant, Index security_level, Relids required_relids, Relids incompatible_relids, Relids outer_relids) |
RestrictInfo * | commute_restrictinfo (RestrictInfo *rinfo, Oid comm_op) |
bool | restriction_is_or_clause (RestrictInfo *restrictinfo) |
bool | restriction_is_securely_promotable (RestrictInfo *restrictinfo, RelOptInfo *rel) |
List * | get_actual_clauses (List *restrictinfo_list) |
List * | extract_actual_clauses (List *restrictinfo_list, bool pseudoconstant) |
void | extract_actual_join_clauses (List *restrictinfo_list, Relids joinrelids, List **joinquals, List **otherquals) |
bool | join_clause_is_movable_to (RestrictInfo *rinfo, RelOptInfo *baserel) |
bool | join_clause_is_movable_into (RestrictInfo *rinfo, Relids currentrelids, Relids current_and_outer) |
#define make_simple_restrictinfo | ( | root, | |
clause | |||
) |
Definition at line 21 of file restrictinfo.h.
RestrictInfo* commute_restrictinfo | ( | RestrictInfo * | rinfo, |
Oid | comm_op | ||
) |
Definition at line 359 of file restrictinfo.c.
References OpExpr::args, Assert, castNode, RestrictInfo::clause, InvalidOid, linitial, list_length(), list_make2, lsecond, makeNode, NIL, and OpExpr::opno.
Referenced by match_opclause_to_indexcol().
Definition at line 494 of file restrictinfo.c.
References RestrictInfo::clause, lappend(), lfirst_node, NIL, and rinfo_is_constant_true().
Referenced by create_append_plan(), create_bitmap_scan_plan(), create_ctescan_plan(), create_functionscan_plan(), create_hashjoin_plan(), create_indexscan_plan(), create_merge_append_plan(), create_mergejoin_plan(), create_namedtuplestorescan_plan(), create_nestloop_plan(), create_resultscan_plan(), create_samplescan_plan(), create_seqscan_plan(), create_subqueryscan_plan(), create_tablefuncscan_plan(), create_tidrangescan_plan(), create_tidscan_plan(), create_valuesscan_plan(), create_worktablescan_plan(), fileGetForeignPlan(), get_gating_quals(), and postgresGetForeignPlan().
void extract_actual_join_clauses | ( | List * | restrictinfo_list, |
Relids | joinrelids, | ||
List ** | joinquals, | ||
List ** | otherquals | ||
) |
Definition at line 522 of file restrictinfo.c.
References Assert, RestrictInfo::clause, lappend(), lfirst_node, NIL, rinfo_is_constant_true(), and RINFO_IS_PUSHED_DOWN.
Referenced by create_hashjoin_plan(), create_mergejoin_plan(), and create_nestloop_plan().
Definition at line 469 of file restrictinfo.c.
References Assert, RestrictInfo::clause, lappend(), lfirst_node, NIL, and rinfo_is_constant_true().
Referenced by create_bitmap_subplan(), create_hashjoin_plan(), create_join_plan(), and create_mergejoin_plan().
bool join_clause_is_movable_into | ( | RestrictInfo * | rinfo, |
Relids | currentrelids, | ||
Relids | current_and_outer | ||
) |
Definition at line 670 of file restrictinfo.c.
References bms_is_subset(), bms_overlap(), and RestrictInfo::outer_relids.
Referenced by get_baserel_parampathinfo(), get_joinrel_parampathinfo(), and has_indexed_join_quals().
bool join_clause_is_movable_to | ( | RestrictInfo * | rinfo, |
RelOptInfo * | baserel | ||
) |
Definition at line 584 of file restrictinfo.c.
References bms_is_member(), bms_overlap(), RestrictInfo::is_clone, RelOptInfo::lateral_referencers, RelOptInfo::nulling_relids, RestrictInfo::outer_relids, and RelOptInfo::relid.
Referenced by BuildParameterizedTidPaths(), check_index_predicates(), extract_restriction_or_clauses(), match_join_clauses_to_index(), and postgresGetForeignPaths().
RestrictInfo* make_restrictinfo | ( | PlannerInfo * | root, |
Expr * | clause, | ||
bool | is_pushed_down, | ||
bool | has_clone, | ||
bool | is_clone, | ||
bool | pseudoconstant, | ||
Index | security_level, | ||
Relids | required_relids, | ||
Relids | incompatible_relids, | ||
Relids | outer_relids | ||
) |
Definition at line 63 of file restrictinfo.c.
References Assert, is_andclause(), is_orclause(), make_restrictinfo_internal(), make_sub_restrictinfos(), and root.
Referenced by add_base_clause_to_rel(), add_join_clause_to_rels(), apply_child_basequals(), build_implied_join_equality(), consider_new_or_clause(), distribute_qual_to_rels(), foreign_grouping_ok(), process_equivalence(), process_implied_equality(), and reconsider_outer_join_clauses().
bool restriction_is_or_clause | ( | RestrictInfo * | restrictinfo | ) |
Definition at line 416 of file restrictinfo.c.
Referenced by extract_or_clause(), extract_restriction_or_clauses(), generate_bitmap_or_paths(), match_join_clauses_to_index(), remove_rel_from_restrictinfo(), restriction_is_always_false(), restriction_is_always_true(), and TidQualFromRestrictInfoList().
bool restriction_is_securely_promotable | ( | RestrictInfo * | restrictinfo, |
RelOptInfo * | rel | ||
) |
Definition at line 431 of file restrictinfo.c.
References RelOptInfo::baserestrict_min_security, and RestrictInfo::security_level.
Referenced by BuildParameterizedTidPaths(), match_clause_to_index(), and RestrictInfoIsTidQual().