mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Change my-function-name-- to my_function_name, and optimizer renames.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* indxpath.c--
|
||||
* indxpath.c
|
||||
* Routines to determine which indices are usable for scanning a
|
||||
* given relation
|
||||
*
|
||||
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.43 1999/02/11 14:58:50 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.44 1999/02/13 23:16:16 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -56,7 +56,7 @@ static List *group_clauses_by_indexkey(RelOptInfo *rel, RelOptInfo *index,
|
||||
static List *group_clauses_by_ikey_for_joins(RelOptInfo *rel, RelOptInfo *index,
|
||||
int *indexkeys, Oid *classes, List *join_cinfo_list, List *restr_cinfo_list);
|
||||
static RestrictInfo *match_clause_to_indexkey(RelOptInfo *rel, RelOptInfo *index, int indexkey,
|
||||
int xclass, RestrictInfo * restrictInfo, bool join);
|
||||
int xclass, RestrictInfo *restrictInfo, bool join);
|
||||
static bool pred_test(List *predicate_list, List *restrictinfo_list,
|
||||
List *joininfo_list);
|
||||
static bool one_pred_test(Expr *predicate, List *restrictinfo_list);
|
||||
@ -90,8 +90,8 @@ static bool function_index_operand(Expr *funcOpnd, RelOptInfo *rel, RelOptInfo *
|
||||
*
|
||||
* 'rel' is the relation entry to which these index paths correspond
|
||||
* 'indices' is a list of possible index paths
|
||||
* 'restrictinfo-list' is a list of restriction restrictinfo nodes for 'rel'
|
||||
* 'joininfo-list' is a list of joininfo nodes for 'rel'
|
||||
* 'restrictinfo_list' is a list of restriction restrictinfo nodes for 'rel'
|
||||
* 'joininfo_list' is a list of joininfo nodes for 'rel'
|
||||
* 'sortkeys' is a node describing the result sort order (from
|
||||
* (find_sortkeys))
|
||||
*
|
||||
@ -200,7 +200,7 @@ find_index_paths(Query *root,
|
||||
|
||||
|
||||
/*
|
||||
* match-index-orclauses--
|
||||
* match_index_orclauses
|
||||
* Attempt to match an index against subclauses within 'or' clauses.
|
||||
* If the index does match, then the clause is marked with information
|
||||
* about the index.
|
||||
@ -212,7 +212,7 @@ find_index_paths(Query *root,
|
||||
* 'index' is the index node.
|
||||
* 'indexkey' is the (single) key of the index
|
||||
* 'class' is the class of the operator corresponding to 'indexkey'.
|
||||
* 'restrictinfo-list' is the list of available restriction clauses.
|
||||
* 'restrictinfo_list' is the list of available restriction clauses.
|
||||
*
|
||||
* Returns nothing.
|
||||
*
|
||||
@ -276,7 +276,7 @@ match_index_to_operand(int indexkey,
|
||||
}
|
||||
|
||||
/*
|
||||
* match-index-orclause--
|
||||
* match_index_orclause
|
||||
* Attempts to match an index against the subclauses of an 'or' clause.
|
||||
*
|
||||
* A match means that:
|
||||
@ -285,8 +285,8 @@ match_index_to_operand(int indexkey,
|
||||
* (2) there is a usable key that matches the variable within a
|
||||
* searchable clause.
|
||||
*
|
||||
* 'or-clauses' are the remaining subclauses within the 'or' clause
|
||||
* 'other-matching-indices' is the list of information on other indices
|
||||
* 'or_clauses' are the remaining subclauses within the 'or' clause
|
||||
* 'other_matching_indices' is the list of information on other indices
|
||||
* that have already been matched to subclauses within this
|
||||
* particular 'or' clause (i.e., a list previously generated by
|
||||
* this routine)
|
||||
@ -364,7 +364,7 @@ match_index_orclause(RelOptInfo *rel,
|
||||
(index->indproc != InvalidOid))
|
||||
|
||||
/*
|
||||
* group-clauses-by-indexkey--
|
||||
* group_clauses_by_indexkey
|
||||
* Determines whether there are clauses which will match each and every
|
||||
* one of the remaining keys of an index.
|
||||
*
|
||||
@ -442,8 +442,8 @@ group_clauses_by_indexkey(RelOptInfo *rel,
|
||||
}
|
||||
|
||||
/*
|
||||
* group-clauses-by-ikey-for-joins--
|
||||
* special edition of group-clauses-by-indexkey - will
|
||||
* group_clauses_by_ikey_for_joins
|
||||
* special edition of group_clauses_by_indexkey - will
|
||||
* match join & restriction clauses. See comment in indexable_joinclauses.
|
||||
* - vadim 03/18/97
|
||||
*
|
||||
@ -771,7 +771,7 @@ match_clause_to_indexkey(RelOptInfo *rel,
|
||||
****************************************************************************/
|
||||
|
||||
/*
|
||||
* pred_test--
|
||||
* pred_test
|
||||
* Does the "predicate inclusion test" for partial indexes.
|
||||
*
|
||||
* Recursively checks whether the clauses in restrictinfo_list imply
|
||||
@ -831,7 +831,7 @@ pred_test(List *predicate_list, List *restrictinfo_list, List *joininfo_list)
|
||||
|
||||
|
||||
/*
|
||||
* one_pred_test--
|
||||
* one_pred_test
|
||||
* Does the "predicate inclusion test" for one conjunct of a predicate
|
||||
* expression.
|
||||
*/
|
||||
@ -854,7 +854,7 @@ one_pred_test(Expr *predicate, List *restrictinfo_list)
|
||||
|
||||
|
||||
/*
|
||||
* one_pred_clause_expr_test--
|
||||
* one_pred_clause_expr_test
|
||||
* Does the "predicate inclusion test" for a general restriction-clause
|
||||
* expression.
|
||||
*/
|
||||
@ -901,7 +901,7 @@ one_pred_clause_expr_test(Expr *predicate, Node *clause)
|
||||
|
||||
|
||||
/*
|
||||
* one_pred_clause_test--
|
||||
* one_pred_clause_test
|
||||
* Does the "predicate inclusion test" for one conjunct of a predicate
|
||||
* expression for a simple restriction clause.
|
||||
*/
|
||||
@ -978,7 +978,7 @@ StrategyNumber BT_implic_table[BTMaxStrategyNumber][BTMaxStrategyNumber] = {
|
||||
|
||||
|
||||
/*
|
||||
* clause_pred_clause_test--
|
||||
* clause_pred_clause_test
|
||||
* Use operator class info to check whether clause implies predicate.
|
||||
*
|
||||
* Does the "predicate inclusion test" for a "simple clause" predicate
|
||||
@ -1168,8 +1168,8 @@ clause_pred_clause_test(Expr *predicate, Node *clause)
|
||||
****************************************************************************/
|
||||
|
||||
/*
|
||||
* indexable-joinclauses--
|
||||
* Finds all groups of join clauses from among 'joininfo-list' that can
|
||||
* indexable_joinclauses
|
||||
* Finds all groups of join clauses from among 'joininfo_list' that can
|
||||
* be used in conjunction with 'index'.
|
||||
*
|
||||
* The first clause in the group is marked as having the other relation
|
||||
@ -1244,7 +1244,7 @@ extract_restrict_clauses(List *clausegroup)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* index-innerjoin--
|
||||
* index_innerjoin
|
||||
* Creates index path nodes corresponding to paths to be used as inner
|
||||
* relations in nestloop joins.
|
||||
*
|
||||
@ -1330,7 +1330,7 @@ index_innerjoin(Query *root, RelOptInfo *rel, List *clausegroup_list,
|
||||
}
|
||||
|
||||
/*
|
||||
* create-index-paths--
|
||||
* create_index_paths
|
||||
* Creates a list of index path nodes for each group of clauses
|
||||
* (restriction or join) that can be used in conjunction with an index.
|
||||
*
|
||||
|
Reference in New Issue
Block a user