diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-07-08 13:15:09 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-07-08 13:15:09 +0900 |
commit | 6b8548964bccd0f2e65c687d591b7345d5146bfa (patch) | |
tree | 29cddb4e0aa0bc59b02850daf6f508394f8f0ec1 /src/backend/executor | |
parent | 7e9a4c5c3dca0d9637812d8991e96fc8f46800d9 (diff) | |
download | postgresql-6b8548964bccd0f2e65c687d591b7345d5146bfa.tar.gz postgresql-6b8548964bccd0f2e65c687d591b7345d5146bfa.zip |
Fix inconsistencies in the code
This addresses a couple of issues in the code:
- Typos and inconsistencies in comments and function declarations.
- Removal of unreferenced function declarations.
- Removal of unnecessary compile flags.
- A cleanup error in regressplans.sh.
Author: Alexander Lakhin
Discussion: https://postgr.es/m/0c991fdf-2670-1997-c027-772a420c4604@gmail.com
Diffstat (limited to 'src/backend/executor')
-rw-r--r-- | src/backend/executor/README | 4 | ||||
-rw-r--r-- | src/backend/executor/execScan.c | 3 | ||||
-rw-r--r-- | src/backend/executor/execTuples.c | 2 | ||||
-rw-r--r-- | src/backend/executor/nodeProjectSet.c | 4 | ||||
-rw-r--r-- | src/backend/executor/nodeRecursiveunion.c | 4 |
5 files changed, 8 insertions, 9 deletions
diff --git a/src/backend/executor/README b/src/backend/executor/README index 05f197bc75b..18b2ac18659 100644 --- a/src/backend/executor/README +++ b/src/backend/executor/README @@ -186,9 +186,9 @@ Expression Evaluation To allow for different methods of expression evaluation, and for better branch/jump target prediction, expressions are evaluated by -calling ExprState->evalfunc (via ExprEvalExpr() and friends). +calling ExprState->evalfunc (via ExecEvalExpr() and friends). -ExprReadyExpr() can choose the method of interpretation by setting +ExecReadyExpr() can choose the method of interpretation by setting evalfunc to an appropriate function. The default execution function, ExecInterpExpr, is implemented in execExprInterp.c; see its header comment for details. Special-case evalfuncs are used for certain diff --git a/src/backend/executor/execScan.c b/src/backend/executor/execScan.c index 67c4be5108f..c0e4a5376c3 100644 --- a/src/backend/executor/execScan.c +++ b/src/backend/executor/execScan.c @@ -98,8 +98,7 @@ ExecScanFetch(ScanState *node, * ExecScan * * Scans the relation using the 'access method' indicated and - * returns the next qualifying tuple in the direction specified - * in the global variable ExecDirection. + * returns the next qualifying tuple. * The access method returns the next tuple and ExecScan() is * responsible for checking the tuple returned against the qual-clause. * diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c index a5cb7bba0f8..5ee2a464bb4 100644 --- a/src/backend/executor/execTuples.c +++ b/src/backend/executor/execTuples.c @@ -1148,7 +1148,7 @@ ExecAllocTableSlot(List **tupleTable, TupleDesc desc, * This releases any resources (buffer pins, tupdesc refcounts) * held by the tuple table, and optionally releases the memory * occupied by the tuple table data structure. - * It is expected that this routine be called by EndPlan(). + * It is expected that this routine be called by ExecEndPlan(). * -------------------------------- */ void diff --git a/src/backend/executor/nodeProjectSet.c b/src/backend/executor/nodeProjectSet.c index 277d2783711..facdb4232e6 100644 --- a/src/backend/executor/nodeProjectSet.c +++ b/src/backend/executor/nodeProjectSet.c @@ -196,8 +196,8 @@ ExecProjectSRF(ProjectSetState *node, bool continuing) Assert(hassrf); /* - * If all the SRFs returned EndResult, we consider that as no row being - * produced. + * If all the SRFs returned ExprEndResult, we consider that as no row + * being produced. */ if (hasresult) { diff --git a/src/backend/executor/nodeRecursiveunion.c b/src/backend/executor/nodeRecursiveunion.c index 9c5eed7def3..81deb61c215 100644 --- a/src/backend/executor/nodeRecursiveunion.c +++ b/src/backend/executor/nodeRecursiveunion.c @@ -160,7 +160,7 @@ ExecRecursiveUnion(PlanState *pstate) } /* ---------------------------------------------------------------- - * ExecInitRecursiveUnionScan + * ExecInitRecursiveUnion * ---------------------------------------------------------------- */ RecursiveUnionState * @@ -263,7 +263,7 @@ ExecInitRecursiveUnion(RecursiveUnion *node, EState *estate, int eflags) } /* ---------------------------------------------------------------- - * ExecEndRecursiveUnionScan + * ExecEndRecursiveUnion * * frees any storage allocated through C routines. * ---------------------------------------------------------------- |