Skip to content

Commit 244dd95

Browse files
committed
Update some obsolete comments.
Fix a few stray references to expression eval functions that don't exist anymore or don't take the same input representation they used to.
1 parent 6a101b0 commit 244dd95

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/backend/optimizer/util/clauses.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ make_and_qual(Node *qual1, Node *qual2)
354354
}
355355

356356
/*
357-
* Sometimes (such as in the input of ExecQual), we use lists of expression
358-
* nodes with implicit AND semantics.
357+
* The planner frequently prefers to represent qualification expressions
358+
* as lists of boolean expressions with implicit AND semantics.
359359
*
360360
* These functions convert between an AND-semantics expression list and the
361361
* ordinary representation of a boolean expression.

src/backend/utils/cache/relcache.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4743,7 +4743,7 @@ RelationGetIndexExpressions(Relation relation)
47434743
* RelationGetIndexPredicate -- get the index predicate for an index
47444744
*
47454745
* We cache the result of transforming pg_index.indpred into an implicit-AND
4746-
* node tree (suitable for ExecQual).
4746+
* node tree (suitable for use in planning).
47474747
* If the rel is not an index or has no predicate, we return NIL.
47484748
* Otherwise, the returned tree is copied into the caller's memory context.
47494749
* (We don't want to return a pointer to the relcache copy, since it could

src/pl/plpgsql/src/pl_exec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4759,7 +4759,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
47594759
* fixed-length array types we skip the assignment. We can't
47604760
* support assignment of a null entry into a fixed-length
47614761
* array, either, so that's a no-op too. This is all ugly but
4762-
* corresponds to the current behavior of ExecEvalArrayRef().
4762+
* corresponds to the current behavior of execExpr*.c.
47634763
*/
47644764
if (arrayelem->arraytyplen > 0 && /* fixed-length array? */
47654765
(oldarrayisnull || isNull))

0 commit comments

Comments
 (0)