Update some obsolete comments.
authorTom Lane
Sun, 26 Mar 2017 15:36:46 +0000 (11:36 -0400)
committerTom Lane
Sun, 26 Mar 2017 15:36:46 +0000 (11:36 -0400)
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.

src/backend/optimizer/util/clauses.c
src/backend/utils/cache/relcache.c
src/pl/plpgsql/src/pl_exec.c

index 42bba543e934e0a6b9b5a94747b315480baa1363..a578867cced4bf2f6c3f5811a1e68271b128ace1 100644 (file)
@@ -354,8 +354,8 @@ make_and_qual(Node *qual1, Node *qual2)
 }
 
 /*
- * Sometimes (such as in the input of ExecQual), we use lists of expression
- * nodes with implicit AND semantics.
+ * The planner frequently prefers to represent qualification expressions
+ * as lists of boolean expressions with implicit AND semantics.
  *
  * These functions convert between an AND-semantics expression list and the
  * ordinary representation of a boolean expression.
index a6b60c67caaf391784935443dbef6103c9958e12..bc52183bfb0867479bcdfe15e14a6051ece6ea9c 100644 (file)
@@ -4743,7 +4743,7 @@ RelationGetIndexExpressions(Relation relation)
  * RelationGetIndexPredicate -- get the index predicate for an index
  *
  * We cache the result of transforming pg_index.indpred into an implicit-AND
- * node tree (suitable for ExecQual).
+ * node tree (suitable for use in planning).
  * If the rel is not an index or has no predicate, we return NIL.
  * Otherwise, the returned tree is copied into the caller's memory context.
  * (We don't want to return a pointer to the relcache copy, since it could
index 84af81553751af794c7f977da774a20e34970444..c27935b51bace58786310bc02bbdf21f3ebc8106 100644 (file)
@@ -4759,7 +4759,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
                 * fixed-length array types we skip the assignment.  We can't
                 * support assignment of a null entry into a fixed-length
                 * array, either, so that's a no-op too.  This is all ugly but
-                * corresponds to the current behavior of ExecEvalArrayRef().
+                * corresponds to the current behavior of execExpr*.c.
                 */
                if (arrayelem->arraytyplen > 0 &&       /* fixed-length array? */
                    (oldarrayisnull || isNull))