mirror of
https://github.com/postgres/postgres.git
synced 2025-11-29 23:43:17 +03:00
Mark ItemPointer arguments as const throughout
This is a follow up 991295f. I searched over src/ and made all
ItemPointer arguments as const as much as possible.
Note: We cut out from the original patch the pieces that would have
created incompatibilities in the index or table AM APIs. Those could
be considered separately.
Author: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAEoWx2nBaypg16Z5ciHuKw66pk850RFWw9ACS2DqqJ_AkKeRsw%40mail.gmail.com
This commit is contained in:
@@ -128,7 +128,7 @@ typedef enum
|
||||
|
||||
static bool check_exclusion_or_unique_constraint(Relation heap, Relation index,
|
||||
IndexInfo *indexInfo,
|
||||
ItemPointer tupleid,
|
||||
const ItemPointerData *tupleid,
|
||||
const Datum *values, const bool *isnull,
|
||||
EState *estate, bool newIndex,
|
||||
CEOUC_WAIT_MODE waitMode,
|
||||
@@ -541,7 +541,7 @@ ExecInsertIndexTuples(ResultRelInfo *resultRelInfo,
|
||||
bool
|
||||
ExecCheckIndexConstraints(ResultRelInfo *resultRelInfo, TupleTableSlot *slot,
|
||||
EState *estate, ItemPointer conflictTid,
|
||||
ItemPointer tupleid, List *arbiterIndexes)
|
||||
const ItemPointerData *tupleid, List *arbiterIndexes)
|
||||
{
|
||||
int i;
|
||||
int numIndices;
|
||||
@@ -703,7 +703,7 @@ ExecCheckIndexConstraints(ResultRelInfo *resultRelInfo, TupleTableSlot *slot,
|
||||
static bool
|
||||
check_exclusion_or_unique_constraint(Relation heap, Relation index,
|
||||
IndexInfo *indexInfo,
|
||||
ItemPointer tupleid,
|
||||
const ItemPointerData *tupleid,
|
||||
const Datum *values, const bool *isnull,
|
||||
EState *estate, bool newIndex,
|
||||
CEOUC_WAIT_MODE waitMode,
|
||||
@@ -955,7 +955,7 @@ retry:
|
||||
void
|
||||
check_exclusion_constraint(Relation heap, Relation index,
|
||||
IndexInfo *indexInfo,
|
||||
ItemPointer tupleid,
|
||||
const ItemPointerData *tupleid,
|
||||
const Datum *values, const bool *isnull,
|
||||
EState *estate, bool newIndex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user