mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +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:
@@ -42,7 +42,7 @@
|
||||
#define DELIM ','
|
||||
#define NTIDARGS 2
|
||||
|
||||
static ItemPointer currtid_for_view(Relation viewrel, ItemPointer tid);
|
||||
static ItemPointer currtid_for_view(Relation viewrel, const ItemPointerData *tid);
|
||||
|
||||
/* ----------------------------------------------------------------
|
||||
* tidin
|
||||
@@ -293,7 +293,7 @@ hashtidextended(PG_FUNCTION_ARGS)
|
||||
* relation "rel".
|
||||
*/
|
||||
static ItemPointer
|
||||
currtid_internal(Relation rel, ItemPointer tid)
|
||||
currtid_internal(Relation rel, const ItemPointerData *tid)
|
||||
{
|
||||
ItemPointer result;
|
||||
AclResult aclresult;
|
||||
@@ -335,7 +335,7 @@ currtid_internal(Relation rel, ItemPointer tid)
|
||||
* correspond to the CTID of a base relation.
|
||||
*/
|
||||
static ItemPointer
|
||||
currtid_for_view(Relation viewrel, ItemPointer tid)
|
||||
currtid_for_view(Relation viewrel, const ItemPointerData *tid)
|
||||
{
|
||||
TupleDesc att = RelationGetDescr(viewrel);
|
||||
RuleLock *rulelock;
|
||||
|
||||
Reference in New Issue
Block a user