aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-12-13 21:17:53 +0100
committerPeter Eisentraut <peter_e@gmx.net>2018-12-22 07:45:09 +0100
commit323eaf98250e2de9afb2d9f86fa841beaeb575b7 (patch)
tree4df8972c7c262fab15a14229c7aa4a7cd0a433c6 /src
parentf4eabaf3e0f84d5eb3ebdeeff0a71cb8db4b1ff6 (diff)
downloadpostgresql-323eaf98250e2de9afb2d9f86fa841beaeb575b7.tar.gz
postgresql-323eaf98250e2de9afb2d9f86fa841beaeb575b7.zip
Add some const decorations
These mainly help understanding the function signatures better.
Diffstat (limited to 'src')
-rw-r--r--src/backend/executor/execExpr.c4
-rw-r--r--src/backend/executor/execGrouping.c8
-rw-r--r--src/include/executor/executor.h12
3 files changed, 12 insertions, 12 deletions
diff --git a/src/backend/executor/execExpr.c b/src/backend/executor/execExpr.c
index d9087cac150..4f8a2a5bc2e 100644
--- a/src/backend/executor/execExpr.c
+++ b/src/backend/executor/execExpr.c
@@ -3314,8 +3314,8 @@ ExprState *
ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc,
const TupleTableSlotOps *lops, const TupleTableSlotOps *rops,
int numCols,
- AttrNumber *keyColIdx,
- Oid *eqfunctions,
+ const AttrNumber *keyColIdx,
+ const Oid *eqfunctions,
PlanState *parent)
{
ExprState *state = makeNode(ExprState);
diff --git a/src/backend/executor/execGrouping.c b/src/backend/executor/execGrouping.c
index abce1e95cb6..efe8c30383d 100644
--- a/src/backend/executor/execGrouping.c
+++ b/src/backend/executor/execGrouping.c
@@ -59,8 +59,8 @@ static int TupleHashTableMatch(struct tuplehash_hash *tb, const MinimalTuple tup
ExprState *
execTuplesMatchPrepare(TupleDesc desc,
int numCols,
- AttrNumber *keyColIdx,
- Oid *eqOperators,
+ const AttrNumber *keyColIdx,
+ const Oid *eqOperators,
PlanState *parent)
{
Oid *eqFunctions = (Oid *) palloc(numCols * sizeof(Oid));
@@ -94,7 +94,7 @@ execTuplesMatchPrepare(TupleDesc desc,
*/
void
execTuplesHashPrepare(int numCols,
- Oid *eqOperators,
+ const Oid *eqOperators,
Oid **eqFuncOids,
FmgrInfo **hashFunctions)
{
@@ -153,7 +153,7 @@ TupleHashTable
BuildTupleHashTable(PlanState *parent,
TupleDesc inputDesc,
int numCols, AttrNumber *keyColIdx,
- Oid *eqfuncoids,
+ const Oid *eqfuncoids,
FmgrInfo *hashfunctions,
long nbuckets, Size additionalsize,
MemoryContext tablecxt, MemoryContext tempcxt,
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h
index 2feec628c03..92a10ebd5c9 100644
--- a/src/include/executor/executor.h
+++ b/src/include/executor/executor.h
@@ -108,17 +108,17 @@ extern bool execCurrentOf(CurrentOfExpr *cexpr,
*/
extern ExprState *execTuplesMatchPrepare(TupleDesc desc,
int numCols,
- AttrNumber *keyColIdx,
- Oid *eqOperators,
+ const AttrNumber *keyColIdx,
+ const Oid *eqOperators,
PlanState *parent);
extern void execTuplesHashPrepare(int numCols,
- Oid *eqOperators,
+ const Oid *eqOperators,
Oid **eqFuncOids,
FmgrInfo **hashFunctions);
extern TupleHashTable BuildTupleHashTable(PlanState *parent,
TupleDesc inputDesc,
int numCols, AttrNumber *keyColIdx,
- Oid *eqfuncoids,
+ const Oid *eqfuncoids,
FmgrInfo *hashfunctions,
long nbuckets, Size additionalsize,
MemoryContext tablecxt,
@@ -244,8 +244,8 @@ extern ExprState *ExecBuildAggTrans(AggState *aggstate, struct AggStatePerPhaseD
extern ExprState *ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc,
const TupleTableSlotOps *lops, const TupleTableSlotOps *rops,
int numCols,
- AttrNumber *keyColIdx,
- Oid *eqfunctions,
+ const AttrNumber *keyColIdx,
+ const Oid *eqfunctions,
PlanState *parent);
extern ProjectionInfo *ExecBuildProjectionInfo(List *targetList,
ExprContext *econtext,