Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
323eaf98
Commit
323eaf98
authored
Dec 13, 2018
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some const decorations
These mainly help understanding the function signatures better.
parent
f4eabaf3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
src/backend/executor/execExpr.c
src/backend/executor/execExpr.c
+2
-2
src/backend/executor/execGrouping.c
src/backend/executor/execGrouping.c
+4
-4
src/include/executor/executor.h
src/include/executor/executor.h
+6
-6
No files found.
src/backend/executor/execExpr.c
View file @
323eaf98
...
@@ -3314,8 +3314,8 @@ ExprState *
...
@@ -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
);
...
...
src/backend/executor/execGrouping.c
View file @
323eaf98
...
@@ -59,8 +59,8 @@ static int TupleHashTableMatch(struct tuplehash_hash *tb, const MinimalTuple tup
...
@@ -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,
...
@@ -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
...
@@ -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
,
...
...
src/include/executor/executor.h
View file @
323eaf98
...
@@ -108,17 +108,17 @@ extern bool execCurrentOf(CurrentOfExpr *cexpr,
...
@@ -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
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment