mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Add some const decorations
These mainly help understanding the function signatures better.
This commit is contained in:
@ -3314,8 +3314,8 @@ ExprState *
|
|||||||
ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc,
|
ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc,
|
||||||
const TupleTableSlotOps *lops, const TupleTableSlotOps *rops,
|
const TupleTableSlotOps *lops, const TupleTableSlotOps *rops,
|
||||||
int numCols,
|
int numCols,
|
||||||
AttrNumber *keyColIdx,
|
const AttrNumber *keyColIdx,
|
||||||
Oid *eqfunctions,
|
const Oid *eqfunctions,
|
||||||
PlanState *parent)
|
PlanState *parent)
|
||||||
{
|
{
|
||||||
ExprState *state = makeNode(ExprState);
|
ExprState *state = makeNode(ExprState);
|
||||||
|
@ -59,8 +59,8 @@ static int TupleHashTableMatch(struct tuplehash_hash *tb, const MinimalTuple tup
|
|||||||
ExprState *
|
ExprState *
|
||||||
execTuplesMatchPrepare(TupleDesc desc,
|
execTuplesMatchPrepare(TupleDesc desc,
|
||||||
int numCols,
|
int numCols,
|
||||||
AttrNumber *keyColIdx,
|
const AttrNumber *keyColIdx,
|
||||||
Oid *eqOperators,
|
const Oid *eqOperators,
|
||||||
PlanState *parent)
|
PlanState *parent)
|
||||||
{
|
{
|
||||||
Oid *eqFunctions = (Oid *) palloc(numCols * sizeof(Oid));
|
Oid *eqFunctions = (Oid *) palloc(numCols * sizeof(Oid));
|
||||||
@ -94,7 +94,7 @@ execTuplesMatchPrepare(TupleDesc desc,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
execTuplesHashPrepare(int numCols,
|
execTuplesHashPrepare(int numCols,
|
||||||
Oid *eqOperators,
|
const Oid *eqOperators,
|
||||||
Oid **eqFuncOids,
|
Oid **eqFuncOids,
|
||||||
FmgrInfo **hashFunctions)
|
FmgrInfo **hashFunctions)
|
||||||
{
|
{
|
||||||
@ -153,7 +153,7 @@ TupleHashTable
|
|||||||
BuildTupleHashTable(PlanState *parent,
|
BuildTupleHashTable(PlanState *parent,
|
||||||
TupleDesc inputDesc,
|
TupleDesc inputDesc,
|
||||||
int numCols, AttrNumber *keyColIdx,
|
int numCols, AttrNumber *keyColIdx,
|
||||||
Oid *eqfuncoids,
|
const Oid *eqfuncoids,
|
||||||
FmgrInfo *hashfunctions,
|
FmgrInfo *hashfunctions,
|
||||||
long nbuckets, Size additionalsize,
|
long nbuckets, Size additionalsize,
|
||||||
MemoryContext tablecxt, MemoryContext tempcxt,
|
MemoryContext tablecxt, MemoryContext tempcxt,
|
||||||
|
@ -108,17 +108,17 @@ extern bool execCurrentOf(CurrentOfExpr *cexpr,
|
|||||||
*/
|
*/
|
||||||
extern ExprState *execTuplesMatchPrepare(TupleDesc desc,
|
extern ExprState *execTuplesMatchPrepare(TupleDesc desc,
|
||||||
int numCols,
|
int numCols,
|
||||||
AttrNumber *keyColIdx,
|
const AttrNumber *keyColIdx,
|
||||||
Oid *eqOperators,
|
const Oid *eqOperators,
|
||||||
PlanState *parent);
|
PlanState *parent);
|
||||||
extern void execTuplesHashPrepare(int numCols,
|
extern void execTuplesHashPrepare(int numCols,
|
||||||
Oid *eqOperators,
|
const Oid *eqOperators,
|
||||||
Oid **eqFuncOids,
|
Oid **eqFuncOids,
|
||||||
FmgrInfo **hashFunctions);
|
FmgrInfo **hashFunctions);
|
||||||
extern TupleHashTable BuildTupleHashTable(PlanState *parent,
|
extern TupleHashTable BuildTupleHashTable(PlanState *parent,
|
||||||
TupleDesc inputDesc,
|
TupleDesc inputDesc,
|
||||||
int numCols, AttrNumber *keyColIdx,
|
int numCols, AttrNumber *keyColIdx,
|
||||||
Oid *eqfuncoids,
|
const Oid *eqfuncoids,
|
||||||
FmgrInfo *hashfunctions,
|
FmgrInfo *hashfunctions,
|
||||||
long nbuckets, Size additionalsize,
|
long nbuckets, Size additionalsize,
|
||||||
MemoryContext tablecxt,
|
MemoryContext tablecxt,
|
||||||
@ -244,8 +244,8 @@ extern ExprState *ExecBuildAggTrans(AggState *aggstate, struct AggStatePerPhaseD
|
|||||||
extern ExprState *ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc,
|
extern ExprState *ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc,
|
||||||
const TupleTableSlotOps *lops, const TupleTableSlotOps *rops,
|
const TupleTableSlotOps *lops, const TupleTableSlotOps *rops,
|
||||||
int numCols,
|
int numCols,
|
||||||
AttrNumber *keyColIdx,
|
const AttrNumber *keyColIdx,
|
||||||
Oid *eqfunctions,
|
const Oid *eqfunctions,
|
||||||
PlanState *parent);
|
PlanState *parent);
|
||||||
extern ProjectionInfo *ExecBuildProjectionInfo(List *targetList,
|
extern ProjectionInfo *ExecBuildProjectionInfo(List *targetList,
|
||||||
ExprContext *econtext,
|
ExprContext *econtext,
|
||||||
|
Reference in New Issue
Block a user