diff options
Diffstat (limited to 'src/backend/executor')
-rw-r--r-- | src/backend/executor/execUtils.c | 6 | ||||
-rw-r--r-- | src/backend/executor/functions.c | 8 | ||||
-rw-r--r-- | src/backend/executor/nodeMergejoin.c | 19 |
3 files changed, 20 insertions, 13 deletions
diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c index eff6529b74b..5886c1bbd64 100644 --- a/src/backend/executor/execUtils.c +++ b/src/backend/executor/execUtils.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execUtils.c,v 1.172 2010/05/29 02:32:08 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execUtils.c,v 1.173 2010/07/06 19:18:56 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1310,8 +1310,8 @@ retry: /* * We should have found our tuple in the index, unless we exited the loop - * early because of conflict. Complain if not. If we ever implement - * '<>' index opclasses, this check will fail and will have to be removed. + * early because of conflict. Complain if not. If we ever implement '<>' + * index opclasses, this check will fail and will have to be removed. */ if (!found_self && !conflict) ereport(ERROR, diff --git a/src/backend/executor/functions.c b/src/backend/executor/functions.c index 1f6d530f91d..ea2cfc9e66b 100644 --- a/src/backend/executor/functions.c +++ b/src/backend/executor/functions.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.143 2010/03/19 22:54:40 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.144 2010/07/06 19:18:56 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -939,9 +939,9 @@ sql_exec_error_callback(void *arg) else { /* - * Assume we failed during init_sql_fcache(). (It's possible that - * the function actually has an empty body, but in that case we may - * as well report all errors as being "during startup".) + * Assume we failed during init_sql_fcache(). (It's possible that the + * function actually has an empty body, but in that case we may as + * well report all errors as being "during startup".) */ errcontext("SQL function \"%s\" during startup", fcache->fname); } diff --git a/src/backend/executor/nodeMergejoin.c b/src/backend/executor/nodeMergejoin.c index e3b736f9079..948f5800958 100644 --- a/src/backend/executor/nodeMergejoin.c +++ b/src/backend/executor/nodeMergejoin.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/nodeMergejoin.c,v 1.102 2010/05/28 01:14:03 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/nodeMergejoin.c,v 1.103 2010/07/06 19:18:56 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -252,7 +252,7 @@ MJExamineQuals(List *mergeclauses, * input, since we assume mergejoin operators are strict. If the NULL * is in the first join column, and that column sorts nulls last, then * we can further conclude that no following tuple can match anything - * either, since they must all have nulls in the first column. However, + * either, since they must all have nulls in the first column. However, * that case is only interesting if we're not in FillOuter mode, else * we have to visit all the tuples anyway. * @@ -748,6 +748,7 @@ ExecMergeJoin(MergeJoinState *node) switch (MJEvalInnerValues(node, innerTupleSlot)) { case MJEVAL_MATCHABLE: + /* * OK, we have the initial tuples. Begin by skipping * non-matching tuples. @@ -922,6 +923,7 @@ ExecMergeJoin(MergeJoinState *node) switch (MJEvalInnerValues(node, innerTupleSlot)) { case MJEVAL_MATCHABLE: + /* * Test the new inner tuple to see if it matches * outer. @@ -944,6 +946,7 @@ ExecMergeJoin(MergeJoinState *node) } break; case MJEVAL_NONMATCHABLE: + /* * It contains a NULL and hence can't match any outer * tuple, so we can skip the comparison and assume the @@ -952,10 +955,11 @@ ExecMergeJoin(MergeJoinState *node) node->mj_JoinState = EXEC_MJ_NEXTOUTER; break; case MJEVAL_ENDOFJOIN: + /* - * No more inner tuples. However, this might be - * only effective and not physical end of inner plan, - * so force mj_InnerTupleSlot to null to make sure we + * No more inner tuples. However, this might be only + * effective and not physical end of inner plan, so + * force mj_InnerTupleSlot to null to make sure we * don't fetch more inner tuples. (We need this hack * because we are not transiting to a state where the * inner plan is assumed to be exhausted.) @@ -1152,9 +1156,11 @@ ExecMergeJoin(MergeJoinState *node) node->mj_JoinState = EXEC_MJ_SKIP_TEST; break; case MJEVAL_NONMATCHABLE: + /* * current inner can't possibly match any outer; - * better to advance the inner scan than the outer. + * better to advance the inner scan than the + * outer. */ node->mj_JoinState = EXEC_MJ_SKIPINNER_ADVANCE; break; @@ -1337,6 +1343,7 @@ ExecMergeJoin(MergeJoinState *node) node->mj_JoinState = EXEC_MJ_SKIP_TEST; break; case MJEVAL_NONMATCHABLE: + /* * current inner can't possibly match any outer; * better to advance the inner scan than the outer. |