Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 323eaf9

Browse files
committed
Add some const decorations
These mainly help understanding the function signatures better.
1 parent f4eabaf commit 323eaf9

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/backend/executor/execExpr.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3314,8 +3314,8 @@ ExprState *
33143314
ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc,
33153315
const TupleTableSlotOps *lops, const TupleTableSlotOps *rops,
33163316
int numCols,
3317-
AttrNumber *keyColIdx,
3318-
Oid *eqfunctions,
3317+
const AttrNumber *keyColIdx,
3318+
const Oid *eqfunctions,
33193319
PlanState *parent)
33203320
{
33213321
ExprState *state = makeNode(ExprState);

src/backend/executor/execGrouping.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ static int TupleHashTableMatch(struct tuplehash_hash *tb, const MinimalTuple tup
5959
ExprState *
6060
execTuplesMatchPrepare(TupleDesc desc,
6161
int numCols,
62-
AttrNumber *keyColIdx,
63-
Oid *eqOperators,
62+
const AttrNumber *keyColIdx,
63+
const Oid *eqOperators,
6464
PlanState *parent)
6565
{
6666
Oid *eqFunctions = (Oid *) palloc(numCols * sizeof(Oid));
@@ -94,7 +94,7 @@ execTuplesMatchPrepare(TupleDesc desc,
9494
*/
9595
void
9696
execTuplesHashPrepare(int numCols,
97-
Oid *eqOperators,
97+
const Oid *eqOperators,
9898
Oid **eqFuncOids,
9999
FmgrInfo **hashFunctions)
100100
{
@@ -153,7 +153,7 @@ TupleHashTable
153153
BuildTupleHashTable(PlanState *parent,
154154
TupleDesc inputDesc,
155155
int numCols, AttrNumber *keyColIdx,
156-
Oid *eqfuncoids,
156+
const Oid *eqfuncoids,
157157
FmgrInfo *hashfunctions,
158158
long nbuckets, Size additionalsize,
159159
MemoryContext tablecxt, MemoryContext tempcxt,

src/include/executor/executor.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,17 @@ extern bool execCurrentOf(CurrentOfExpr *cexpr,
108108
*/
109109
extern ExprState *execTuplesMatchPrepare(TupleDesc desc,
110110
int numCols,
111-
AttrNumber *keyColIdx,
112-
Oid *eqOperators,
111+
const AttrNumber *keyColIdx,
112+
const Oid *eqOperators,
113113
PlanState *parent);
114114
extern void execTuplesHashPrepare(int numCols,
115-
Oid *eqOperators,
115+
const Oid *eqOperators,
116116
Oid **eqFuncOids,
117117
FmgrInfo **hashFunctions);
118118
extern TupleHashTable BuildTupleHashTable(PlanState *parent,
119119
TupleDesc inputDesc,
120120
int numCols, AttrNumber *keyColIdx,
121-
Oid *eqfuncoids,
121+
const Oid *eqfuncoids,
122122
FmgrInfo *hashfunctions,
123123
long nbuckets, Size additionalsize,
124124
MemoryContext tablecxt,
@@ -244,8 +244,8 @@ extern ExprState *ExecBuildAggTrans(AggState *aggstate, struct AggStatePerPhaseD
244244
extern ExprState *ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc,
245245
const TupleTableSlotOps *lops, const TupleTableSlotOps *rops,
246246
int numCols,
247-
AttrNumber *keyColIdx,
248-
Oid *eqfunctions,
247+
const AttrNumber *keyColIdx,
248+
const Oid *eqfunctions,
249249
PlanState *parent);
250250
extern ProjectionInfo *ExecBuildProjectionInfo(List *targetList,
251251
ExprContext *econtext,

0 commit comments

Comments
 (0)